tconfusinglocal.nim 267 B

123456789101112131415161718
  1. # bug #5135
  2. proc fail*[E](e: E): void =
  3. raise newException(Exception, e)
  4. # bug #4875
  5. type Bar = object
  6. mFoo: int
  7. template foo(a: Bar): int = a.mFoo
  8. proc main =
  9. let foo = 5 # Rename this to smth else to make it work
  10. var b: Bar
  11. echo b.foo
  12. main()