summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBrian Campbell2020-11-25 21:45:49 +0000
committerBrian Campbell2020-11-25 21:46:03 +0000
commit3d0064a157a711f21d23f56dc2c423b2e3b1d74a (patch)
treed9af47b782b8fee55c8a1a7a720d61710c82febb /test
parent1c425ffde61d7dafa989a9c53df0eba6c0672248 (diff)
Fix Lem output for single element enum
Diffstat (limited to 'test')
-rw-r--r--test/typecheck/pass/single_enum.sail10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/typecheck/pass/single_enum.sail b/test/typecheck/pass/single_enum.sail
new file mode 100644
index 00000000..7293c43a
--- /dev/null
+++ b/test/typecheck/pass/single_enum.sail
@@ -0,0 +1,10 @@
+enum foo = { BAR }
+
+val f : foo -> int
+function f BAR = 1
+
+val g : foo -> int
+function g x = match x { BAR => 1 }
+
+val h : int -> foo
+function h _ = BAR