aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/enums.tm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/enums.tm b/test/enums.tm
index f4af342d..98811408 100644
--- a/test/enums.tm
+++ b/test/enums.tm
@@ -66,4 +66,12 @@ func main():
while when cases[i] is One(x):
>> x
i += 1
+
+ >> expr := when cases[1] is One(y):
+ y + 1
+ else:
+ -1
+ = 2
+
+