Added test for #3304

This commit is contained in:
Dominik Picheta
2016-01-16 13:32:26 +00:00
parent 34a783a61c
commit b6e8a1437b

View File

@@ -0,0 +1,15 @@
discard """
output: '''@[1, 2, 5]'''
"""
import future, sequtils
type
List[T] = ref object
val: T
proc foo[T](l: List[T]): seq[int] =
@[1,2,3,5].filter(x => x != l.val)
when isMainModule:
echo(foo(List[int](val: 3)))