Files
Nim/tests/template/tconfusinglocal.nim
Andreas Rumpf 7c0fa52bbd fixes #4875
2016-10-20 21:40:04 +02:00

14 lines
191 B
Nim

# bug #4875
type Bar = object
mFoo: int
template foo(a: Bar): int = a.mFoo
proc main =
let foo = 5 # Rename this to smth else to make it work
var b: Bar
echo b.foo
main()