add issue #5707 as test case (#9361)

(cherry picked from commit afd5abdfc2)
This commit is contained in:
Vindaar
2018-10-14 08:44:57 +02:00
committed by narimiran
parent 5b3b091cd1
commit ed4a7b7f66

6
tests/generics/t5707.nim Normal file
View File

@@ -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]