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")