aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/opaque_tests_SUITE_data/src/union/union_adt.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dialyzer/test/opaque_tests_SUITE_data/src/union/union_adt.erl')
-rw-r--r--lib/dialyzer/test/opaque_tests_SUITE_data/src/union/union_adt.erl19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/dialyzer/test/opaque_tests_SUITE_data/src/union/union_adt.erl b/lib/dialyzer/test/opaque_tests_SUITE_data/src/union/union_adt.erl
deleted file mode 100644
index 5ca3202bba..0000000000
--- a/lib/dialyzer/test/opaque_tests_SUITE_data/src/union/union_adt.erl
+++ /dev/null
@@ -1,19 +0,0 @@
--module(union_adt).
--export([new/1, new_a/1, new_rec/1]).
-
--record(rec, {x = 42 :: integer()}).
-
--opaque u() :: 'aaa' | 'bbb' | #rec{}.
-
-new(a) -> aaa;
-new(b) -> bbb;
-new(X) when is_integer(X) ->
- #rec{x = X}.
-
-%% the following two functions (and their uses in union_use.erl) test
-%% that the return type is the opaque one and not just a subtype of it
-
-new_a(a) -> aaa.
-
-new_rec(X) when is_integer(X) ->
- #rec{x = X}.