mt3.nim 409 B

12345678910111213
  1. import ./m1 {.all.}
  2. # D20201209T194412:here keep this as is, without `as`, so that mt8.nim test keeps
  3. # checking that the original module symbol for `m1` isn't modified and that
  4. # only the alias in `createModuleAlias` is affected.
  5. doAssert declared(m1.foo1)
  6. doAssert foo1 == 2
  7. doAssert m1.foo1 == 2
  8. doAssert not compiles(mt3.foo0) # foo0 is an imported symbol
  9. doAssert not compiles(mt3.foo1) # ditto