mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
* typo: nonexistant => nonexistent * fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
14 lines
333 B
Nim
14 lines
333 B
Nim
import ./m1 {.all.} as m2
|
|
doAssert compiles(foo1)
|
|
doAssert compiles(m2.foo1)
|
|
doAssert declared(foo1)
|
|
doAssert declared(m2.foo0) # public: works fine
|
|
|
|
doAssert m2.foo1 == 2
|
|
doAssert declared(m2.foo1)
|
|
doAssert not declared(m2.nonexistent)
|
|
|
|
# also tests the quoted `""` import
|
|
import "."/"m1" {.all.} as m1b
|
|
doAssert compiles(m1b.foo1)
|