summary refs log tree commit diff stats
path: root/tests/casestmt/trangeexhaustiveness.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/casestmt/trangeexhaustiveness.nim')
-rw-r--r--tests/casestmt/trangeexhaustiveness.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/casestmt/trangeexhaustiveness.nim b/tests/casestmt/trangeexhaustiveness.nim
new file mode 100644
index 000000000..2b7f3558e
--- /dev/null
+++ b/tests/casestmt/trangeexhaustiveness.nim
@@ -0,0 +1,7 @@
+block: # issue #22661
+  template foo(a: typed) =
+    a
+    
+  foo:
+    case false
+    of false..true: discard