Updated namespaces test and stdlib

This commit is contained in:
Mattia Giambirtone 2022-11-28 13:42:12 +01:00
parent de981a2ec6
commit 8b0d6b7ebe
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);