aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/erl_lint_SUITE.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-04-24 10:24:06 +0200
committerHans Bolinder <[email protected]>2014-04-29 09:17:02 +0200
commiteb11af7f827bbbd6597b018d777993946ac3cbc0 (patch)
tree1ff7dc60a16eca43543d7f9558158ace31b7515f /lib/stdlib/test/erl_lint_SUITE.erl
parentd79cd97007ccc0e7051a8c45f6c164880bc77976 (diff)
downloadotp-eb11af7f827bbbd6597b018d777993946ac3cbc0.tar.gz
otp-eb11af7f827bbbd6597b018d777993946ac3cbc0.tar.bz2
otp-eb11af7f827bbbd6597b018d777993946ac3cbc0.zip
[stdlib] Simplify some linter warnings about specs
Use F/A rather than M:F/A for local functions.
Diffstat (limited to 'lib/stdlib/test/erl_lint_SUITE.erl')
-rw-r--r--lib/stdlib/test/erl_lint_SUITE.erl16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/stdlib/test/erl_lint_SUITE.erl b/lib/stdlib/test/erl_lint_SUITE.erl
index 6e5892714b..5db0631f58 100644
--- a/lib/stdlib/test/erl_lint_SUITE.erl
+++ b/lib/stdlib/test/erl_lint_SUITE.erl
@@ -3731,7 +3731,21 @@ otp_11851(Config) when is_list(Config) ->
a(_) -> true.
">>,
[],
- {errors,[{4,erl_parse,"bad type variable"}],[]}}
+ {errors,[{4,erl_parse,"bad type variable"}],[]}},
+ {otp_11851_4,
+ <<"
+ -spec a(_) -> ok.
+ -spec a(_) -> ok.
+
+ -spec ?MODULE:a(_) -> ok.
+ -spec ?MODULE:a(_) -> ok.
+ ">>,
+ [],
+ {errors,[{3,erl_lint,{redefine_spec,{a,1}}},
+ {5,erl_lint,{redefine_spec,{lint_test,a,1}}},
+ {6,erl_lint,{redefine_spec,{lint_test,a,1}}},
+ {6,erl_lint,{spec_fun_undefined,{a,1}}}],
+ []}}
],
[] = run(Config, Ts),
ok.