summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/mkunion.myr11
-rw-r--r--test/tests1
2 files changed, 12 insertions, 0 deletions
diff --git a/test/mkunion.myr b/test/mkunion.myr
new file mode 100644
index 0000000..8d2f291
--- /dev/null
+++ b/test/mkunion.myr
@@ -0,0 +1,11 @@
+type u = union
+ `Some int
+ `None
+;;
+
+const main = {
+ var v
+
+ v = `Some 123
+ -> 0
+}
diff --git a/test/tests b/test/tests
index 4bce6ec..ecd3f04 100644
--- a/test/tests
+++ b/test/tests
@@ -39,6 +39,7 @@ B str E 102
B generic E 42
B sizeof E 4
B gsizeof E 5
+B mkunion E 0
F declmismatch
F infermismatch
F flow