This commit is contained in:
Araq 2014-09-11 00:34:59 +02:00
commit 2c99991d16
6 changed files with 165 additions and 9 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")