import foo {.all.} reboot (#17706)
This commit is contained in:
parent
12783dbcf0
commit
8161b02897
38 changed files with 584 additions and 76 deletions
13
tests/importalls/mt6.nim
Normal file
13
tests/importalls/mt6.nim
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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.nonexistant)
|
||||
|
||||
# also tests the quoted `""` import
|
||||
import "."/"m1" {.all.} as m1b
|
||||
doAssert compiles(m1b.foo1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue