diff options
author | Hans Bolinder <hasse@erlang.org> | 2021-06-03 11:39:14 +0200 |
---|---|---|
committer | Hans Bolinder <hasse@erlang.org> | 2021-06-07 13:52:42 +0200 |
commit | 3c31bdb47066c33566405ee731d6cdafd206444e (patch) | |
tree | 9d343e962926c03fa2e6da2d7214926d281132a1 /lib/stdlib/test/erl_lint_SUITE.erl | |
parent | e5dd2e546789885b2c4db35e204f8cd26603be16 (diff) | |
download | erlang-3c31bdb47066c33566405ee731d6cdafd206444e.tar.gz |
stdlib: Let the linter report all locations for undef types
The Erlang code linter used to report the last location where an
undefined type was used. Reporting all locations is similar to how
undefined functions and undefined records are reported.
Diffstat (limited to 'lib/stdlib/test/erl_lint_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/erl_lint_SUITE.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/stdlib/test/erl_lint_SUITE.erl b/lib/stdlib/test/erl_lint_SUITE.erl index cf43551692..f6888721db 100644 --- a/lib/stdlib/test/erl_lint_SUITE.erl +++ b/lib/stdlib/test/erl_lint_SUITE.erl @@ -3725,7 +3725,10 @@ predef(Config) when is_list(Config) -> %% dict(), digraph() and so on were removed in Erlang/OTP 18.0. E2 = get_compilation_result(Config, "predef2", []), Tag = undefined_type, - {[{{7,13},erl_lint,{Tag,{array,0}}}, + {[{{5,2},erl_lint,{Tag,{array,0}}}, + {{5,2},erl_lint,{Tag,{digraph,0}}}, + {{5,2},erl_lint,{Tag,{gb_set,0}}}, + {{7,13},erl_lint,{Tag,{array,0}}}, {{12,12},erl_lint,{Tag,{dict,0}}}, {{17,15},erl_lint,{Tag,{digraph,0}}}, {{27,14},erl_lint,{Tag,{gb_set,0}}}, |