Updated namespaces test and stdlib
This commit is contained in:
parent
de981a2ec6
commit
8b0d6b7ebe
|
@ -14,4 +14,5 @@ export misc;
|
|||
export comparisons;
|
||||
|
||||
var version* = 1;
|
||||
var _private = 5; # Invisible outside the module (underscore is to silence warning)
|
||||
var _private = 5; # Invisible outside the module (underscore is to silence warning)
|
||||
var test* = 0x60;
|
|
@ -4,4 +4,5 @@ print(std.version == 1);
|
|||
print(version == std.version); # If there's no duplicates, the fully qualified name is optional
|
||||
var version = 2; # Raises warning
|
||||
print(std.version == 1);
|
||||
print(version == 2); # We shadowed the name, but we can still access it as std.version
|
||||
print(version == 2); # We shadowed the name, but we can still access it as std.version
|
||||
print(std.test == 0x60);
|
Loading…
Reference in New Issue