summary refs log blame commit diff stats
path: root/tests/template/tconfusinglocal.nim
blob: 50bf8f4b2b1dffbbd4be8b150977b5b57d6d1af5 (plain) (tree)
1
2
3
4
5
 



                                  











                                                          
# bug #5135
proc fail*[E](e: E): void =
  raise newException(Exception, e)

# 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()