diff options
author | Hans Bolinder <[email protected]> | 2017-02-10 16:16:17 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-03-08 14:11:49 +0100 |
commit | 25f818f8f57b6606215ccbf3884b2cec7b30c7b1 (patch) | |
tree | 06a0e300f3c0476d7dec5d38b9fbf883c9c759b6 /lib/dialyzer/test | |
parent | bce73eb11441c3593304ccc88d6145ba1fbeffa1 (diff) | |
download | otp-25f818f8f57b6606215ccbf3884b2cec7b30c7b1.tar.gz otp-25f818f8f57b6606215ccbf3884b2cec7b30c7b1.tar.bz2 otp-25f818f8f57b6606215ccbf3884b2cec7b30c7b1.zip |
dialyzer: Fix handling of annotations in a test
Diffstat (limited to 'lib/dialyzer/test')
-rw-r--r-- | lib/dialyzer/test/abstract_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dialyzer/test/abstract_SUITE.erl b/lib/dialyzer/test/abstract_SUITE.erl index 0e84dfab24..37fb39cf27 100644 --- a/lib/dialyzer/test/abstract_SUITE.erl +++ b/lib/dialyzer/test/abstract_SUITE.erl @@ -83,7 +83,8 @@ generated_case(Config) when is_list(Config) -> Config, [], []), ok. -test(Prog, Config, COpts, DOpts) -> +test(Prog0, Config, COpts, DOpts) -> + Prog = erl_parse:anno_from_term(Prog0), {ok, BeamFile} = compile(Config, Prog, COpts), run_dialyzer(Config, succ_typings, [BeamFile], DOpts). |