mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-15 16:01:30 +00:00
Namespaced imports
This commit is contained in:
@ -9,3 +9,12 @@ namespace Outer {
|
||||
Outer.Inner.aVar;
|
||||
Outer.Inner.aFunc();
|
||||
Outer.Inner.anEnum.ONE;
|
||||
|
||||
enum Joined {
|
||||
THREE = 3
|
||||
}
|
||||
namespace Joined {
|
||||
export function anotherFunc(): i32 { return Joined.THREE; }
|
||||
}
|
||||
|
||||
Joined.anotherFunc();
|
||||
|
Reference in New Issue
Block a user