summaryrefslogtreecommitdiff
path: root/test/mkunion.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/mkunion.myr')
-rw-r--r--test/mkunion.myr11
1 files changed, 11 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
+}