aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-03-21 13:20:59 +0100
committerHans Bolinder <[email protected]>2014-03-24 09:31:59 +0100
commit1a4668ddd61802f0936e762f2f85007845e1441e (patch)
tree736387955a34b4347c15bed52dcf0860be2ddcc5 /lib/stdlib/test
parentf725839f502c90ee14f5e2fb48a2393c29f0532d (diff)
downloadotp-1a4668ddd61802f0936e762f2f85007845e1441e.tar.gz
otp-1a4668ddd61802f0936e762f2f85007845e1441e.tar.bz2
otp-1a4668ddd61802f0936e762f2f85007845e1441e.zip
stdlib: warn if the type map() is redefined
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/erl_lint_SUITE.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/stdlib/test/erl_lint_SUITE.erl b/lib/stdlib/test/erl_lint_SUITE.erl
index 673a3cf159..f822986981 100644
--- a/lib/stdlib/test/erl_lint_SUITE.erl
+++ b/lib/stdlib/test/erl_lint_SUITE.erl
@@ -92,7 +92,7 @@ all() ->
bif_clash, behaviour_basic, behaviour_multiple,
otp_7550, otp_8051, format_warn, {group, on_load},
too_many_arguments, basic_errors, bin_syntax_errors, predef,
- maps,maps_type].
+ maps, maps_type].
groups() ->
[{unused_vars_warn, [],
@@ -3439,11 +3439,10 @@ maps_type(Config) when is_list(Config) ->
t(M) -> M.
">>,
[],
- {errors,[{3,erl_lint,{redefine_type,{map,0}}}],[]}}],
+ {warnings,[{3,erl_lint,{new_var_arity_type,map}}]}}],
[] = run(Config, Ts),
ok.
-
run(Config, Tests) ->
F = fun({N,P,Ws,E}, BadL) ->
case catch run_test(Config, P, Ws) of