diff options
author | Björn Gustavsson <[email protected]> | 2012-10-08 15:51:57 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-01-18 11:48:06 +0100 |
commit | cdf80608685750e9e09069d8299a5b44ed53b2a0 (patch) | |
tree | 8b2cc3f5ea9c3684515744b62985a8954e1aa0a0 /lib/stdlib/test | |
parent | ce467a4676fa9c6d501adff800a86ad1b93baa95 (diff) | |
download | otp-cdf80608685750e9e09069d8299a5b44ed53b2a0.tar.gz otp-cdf80608685750e9e09069d8299a5b44ed53b2a0.tar.bz2 otp-cdf80608685750e9e09069d8299a5b44ed53b2a0.zip |
Remove support for parameterized modules
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r-- | lib/stdlib/test/erl_lint_SUITE.erl | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/lib/stdlib/test/erl_lint_SUITE.erl b/lib/stdlib/test/erl_lint_SUITE.erl index 774229fca9..564f27a512 100644 --- a/lib/stdlib/test/erl_lint_SUITE.erl +++ b/lib/stdlib/test/erl_lint_SUITE.erl @@ -2187,27 +2187,9 @@ otp_5878(Config) when is_list(Config) -> ?line [] = run(Config, Ts), Abstr = <<"-module(lint_test, [A, B]). - - -export([args/1]). - - -record(r, {a = A, b = THIS}). % A and THIS are unbound - - %% param:args(compile,param:new(1,2)). - - args(C) -> - X = local(C), - Z = new(A, B), - F = fun(THIS) -> {x, A} end, % THIS unused and shadowed - {X, Z, THIS, F, #r{}}. - - local(C) -> - module_info(C). ">>, - ?line {error,[{5,erl_lint,{unbound_var,'A'}}, - {5,erl_lint,{unbound_var,'THIS'}}], - [{12,erl_lint,{unused_var,'THIS'}}, - {12,erl_lint,{shadowed_var,'THIS','fun'}}]} - = run_test2(Config, Abstr, [warn_unused_record]), + {errors,[{1,erl_lint,pmod_unsupported}],[]} = + run_test2(Config, Abstr, [warn_unused_record]), QLC1 = <<"-module(lint_test). -include_lib(\"stdlib/include/qlc.hrl\"). |