Don't require/allow naming a module, instead require that the importer names it. Allow importing into the local scope with the name !Local. Simplify namespacing logic. Updates all tests to reflect these changes.
8 lines
166 B
Plaintext
8 lines
166 B
Plaintext
|
|
!import "lib/base.tri"
|
|
|
|
!import "test/named-imports/2.tri"
|
|
!import "test/named-imports/3.tri" ThreeRenamed
|
|
|
|
main = equal? (equal? Two.x 2) (equal? ThreeRenamed.x 3)
|