Skip to content

Commit

Permalink
add issue #5707 as test case (#9361)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar authored and narimiran committed Nov 1, 2018
1 parent 4c9d0da commit 9697eb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/generics/t5707.nim
Original file line number Diff line number Diff line change
@@ -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 9697eb9

Please sign in to comment.