From afd5abdfc254f14bfb818f1a8bee892bd77dbf14 Mon Sep 17 00:00:00 2001 From: Vindaar Date: Sun, 14 Oct 2018 08:44:57 +0200 Subject: [PATCH] add issue #5707 as test case (#9361) --- tests/generics/t5707.nim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/generics/t5707.nim diff --git a/tests/generics/t5707.nim b/tests/generics/t5707.nim new file mode 100644 index 0000000000..a155e15970 --- /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]