summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/generics/t5707.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/generics/t5707.nim b/tests/generics/t5707.nim
new file mode 100644
index 000000000..a155e1597
--- /dev/null
+++ b/tests/generics/t5707.nim
@@ -0,0 +1,6 @@
+import sugar
+
+proc foo[T]: seq[int] =
+    return lc[x | (x <- 1..10, x mod 2 == 0), int]
+
+doAssert foo[float32]() == @[2, 4, 6, 8, 10]