Skip to content

Commit

Permalink
add issue nim-lang#5707 as test case (nim-lang#9361)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar authored and narimiran committed Oct 31, 2018
1 parent 9eb75fe commit 9e13a66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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]

0 comments on commit 9e13a66

Please sign in to comment.