Nim/tests/generics/mdotlookup.nim
2014-07-09 21:10:11 +02:00

8 lines
164 B
Nim

proc baz(o: any): int = 5 # if bar is exported, it works
type MyObj = object
x: int
proc foo*(b: any) =
var o: MyObj
echo b.baz, " ", o.x.baz, " ", b.baz()