mt6.nim 333 B

1234567891011121314
  1. import ./m1 {.all.} as m2
  2. doAssert compiles(foo1)
  3. doAssert compiles(m2.foo1)
  4. doAssert declared(foo1)
  5. doAssert declared(m2.foo0) # public: works fine
  6. doAssert m2.foo1 == 2
  7. doAssert declared(m2.foo1)
  8. doAssert not declared(m2.nonexistent)
  9. # also tests the quoted `""` import
  10. import "."/"m1" {.all.} as m1b
  11. doAssert compiles(m1b.foo1)