mt7.nim 277 B

123456789101112131415
  1. include ./m1
  2. doAssert compiles(foo1)
  3. doAssert compiles(mt7.foo1)
  4. doAssert declared(foo1)
  5. doAssert declared(mt7.foo1)
  6. doAssert declared(mt7.foo0)
  7. var f0: Foo5
  8. f0.z3 = 3
  9. doAssert f0.z3 == 3
  10. var f = initFoo5(z3=3)
  11. doAssert f.z3 == 3
  12. doAssert mt7.z3(f) == 30
  13. doAssert z3(f) == 30