diff --git a/src/peon/stdlib/std.pn b/src/peon/stdlib/std.pn index 879d492..8210e5f 100644 --- a/src/peon/stdlib/std.pn +++ b/src/peon/stdlib/std.pn @@ -14,4 +14,5 @@ export misc; export comparisons; var version* = 1; -var _private = 5; # Invisible outside the module (underscore is to silence warning) \ No newline at end of file +var _private = 5; # Invisible outside the module (underscore is to silence warning) +var test* = 0x60; \ No newline at end of file diff --git a/tests/namespaces.pn b/tests/namespaces.pn index 143cda0..4b32954 100644 --- a/tests/namespaces.pn +++ b/tests/namespaces.pn @@ -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 \ No newline at end of file +print(version == 2); # We shadowed the name, but we can still access it as std.version +print(std.test == 0x60); \ No newline at end of file