add issue #5707 as test case (#9361)

This commit is contained in:
Vindaar
2018-10-14 08:44:57 +02:00
committed by Andreas Rumpf
parent 38454c6951
commit afd5abdfc2

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]