You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it doesn't and it also fails if we're to change foo to export a variable. It's a bit complicated to fix because traverseGlobals is assumed to be called once as it emits an INITSSLOT opcode and convertGlobals shouldn't ignore constants for subpackages. ast.SelectorExpr handling at line 808 of codegen.go also should be made aware of package-level constants and variables.
It's also somewhat related to #1150 as at the moment these variables/constants would end up in the same namespace.
The text was updated successfully, but these errors were encountered:
Given the following
foo
:This test should work:
But it doesn't and it also fails if we're to change
foo
to export a variable. It's a bit complicated to fix becausetraverseGlobals
is assumed to be called once as it emits anINITSSLOT
opcode andconvertGlobals
shouldn't ignore constants for subpackages.ast.SelectorExpr
handling at line 808 ofcodegen.go
also should be made aware of package-level constants and variables.It's also somewhat related to #1150 as at the moment these variables/constants would end up in the same namespace.
The text was updated successfully, but these errors were encountered: