aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-01-12 15:34:53 +0100
committerHans Bolinder <[email protected]>2017-01-12 15:34:53 +0100
commita2c5a9252ea2dd8382238ea4ec4e0850f4a15167 (patch)
tree6da4a938e4359f9bbfd9858f63fee003ce1c99af /lib/dialyzer
parentf7908744445a9cd66522f5201846fa3cdb3f2e3d (diff)
parent712e7beec6b1192d5e7294a166a81a3561a39595 (diff)
downloadotp-a2c5a9252ea2dd8382238ea4ec4e0850f4a15167.tar.gz
otp-a2c5a9252ea2dd8382238ea4ec4e0850f4a15167.tar.bz2
otp-a2c5a9252ea2dd8382238ea4ec4e0850f4a15167.zip
Merge branch 'hasse/stdlib/fix_anno_types/OTP-14131' into maint
* hasse/stdlib/fix_anno_types/OTP-14131: stdlib: Correct signatures of functions in erl_parse
Diffstat (limited to 'lib/dialyzer')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/anno.erl18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/src/anno.erl b/lib/dialyzer/test/small_SUITE_data/src/anno.erl
new file mode 100644
index 0000000000..70f1d42141
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/anno.erl
@@ -0,0 +1,18 @@
+-module(anno).
+
+%% OTP-14131
+
+-export([t1/0, t2/0, t3/0]).
+
+t1() ->
+ A = erl_parse:anno_from_term({attribute, 1, module, my_test}),
+ compile:forms([A], []).
+
+t2() ->
+ A = erl_parse:new_anno({attribute, 1, module, my_test}),
+ compile:forms([A], []).
+
+t3() ->
+ A = erl_parse:new_anno({attribute, 1, module, my_test}),
+ T = erl_parse:anno_to_term(A),
+ {attribute, 1, module, my_test} = T.