mcan_access_hidden_field.nim 141 B

123456789
  1. type
  2. Foo* = object
  3. fooa, foob: int
  4. proc createFoo*(a, b: int): Foo = Foo(fooa: a, foob: b)
  5. template geta*(f: Foo): untyped = f.fooa