parent
38454c6951
commit
afd5abdfc2
1 changed files with 6 additions and 0 deletions
6
tests/generics/t5707.nim
Normal file
6
tests/generics/t5707.nim
Normal 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]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue