summary refs log tree commit diff stats
path: root/tests/casestmt/t8333.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/casestmt/t8333.nim')
-rw-r--r--tests/casestmt/t8333.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/casestmt/t8333.nim b/tests/casestmt/t8333.nim
new file mode 100644
index 000000000..ca3523358
--- /dev/null
+++ b/tests/casestmt/t8333.nim
@@ -0,0 +1,10 @@
+discard """
+  output: "1"
+"""
+
+converter toInt*(x: char): int = 
+  x.int
+
+case 0
+of 'a': echo 0
+else: echo 1