This commit is contained in:
Araq
2014-07-09 21:10:11 +02:00
parent d80d8aa74d
commit eb99c27bd0
3 changed files with 49 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
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()

View File

@@ -0,0 +1,7 @@
discard """
output: '''5 5 5'''
"""
import mdotlookup
foo(7)