aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/error_SUITE.erl
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2010-06-07 14:15:11 +0200
committerBjörn Gustavsson <[email protected]>2010-06-09 11:57:27 +0200
commit1ed6388948312bc163b5d391f39a30ae9bc56207 (patch)
tree2c88b7a7d312cd66a3a5ca09f392b97652252fbe /lib/compiler/test/error_SUITE.erl
parent5e354ca66996ee03d615dc36c284e94ccf176e89 (diff)
downloadotp-1ed6388948312bc163b5d391f39a30ae9bc56207.tar.gz
otp-1ed6388948312bc163b5d391f39a30ae9bc56207.tar.bz2
otp-1ed6388948312bc163b5d391f39a30ae9bc56207.zip
Correct warnings and errors for auto-imported bif clashes
warn_unused_import works correctly (does not give warnings when overridden). Local call in guard gives its own error pointing out the local/imported function. Use of the phrase "overridden auto-imported bif" instead of "redefined auto-imported bif" in textual error messages.
Diffstat (limited to 'lib/compiler/test/error_SUITE.erl')
-rw-r--r--lib/compiler/test/error_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/test/error_SUITE.erl b/lib/compiler/test/error_SUITE.erl
index 0874225a62..ec58a0761e 100644
--- a/lib/compiler/test/error_SUITE.erl
+++ b/lib/compiler/test/error_SUITE.erl
@@ -127,7 +127,7 @@ bif_clashes(Config) when is_list(Config) ->
">>,
[],
{error,
- [{4,erl_lint,illegal_guard_expr}],
+ [{4,erl_lint,{illegal_guard_local_call,{length,1}}}],
[]} }],
?line [] = run2(Config, Ts3),
Ts4 = [{bif_clashes9,
@@ -140,7 +140,7 @@ bif_clashes(Config) when is_list(Config) ->
">>,
[],
{error,
- [{5,erl_lint,illegal_guard_expr}],
+ [{5,erl_lint,{illegal_guard_local_call,{length,1}}}],
[]} }],
?line [] = run2(Config, Ts4),