This commit is contained in:
Araq 2014-08-31 01:07:58 +02:00
commit 09ab1703e1
6 changed files with 30 additions and 13 deletions

View file

@ -6,3 +6,11 @@ type MyObj = object
proc foo*(b: any) =
var o: MyObj
echo b.baz, " ", o.x.baz, " ", b.baz()
import sets
var intset = initSet[int]()
proc func*[T](a: T) =
if a in intset: echo("true")
else: echo("false")

View file

@ -1,7 +1,10 @@
discard """
output: '''5 5 5'''
output: '''5 5 5
false'''
"""
import mdotlookup
foo(7)
# bug #1444
func(4)