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
{{ message }}
Repository navigation
sv: an unresolved call in a package class body binds to an importing module's function of the same name #2447
A call in a package class method to a function the package does not declare is accepted, and it runs a function of the same name that the module using the class declares. Names in a package resolve in the package (IEEE 1800-2023 26.3), so the call should be an unknown-function error.
The package keeps the unqualified callee helper in the lowered body, and the module's subroutine of that name satisfies it. This happens on master for a specialization the package names itself, independently of the specializations that #2429 makes for importing scopes (found in its review, discussion r4399937333).
Expected
Reject an unknown function in a package body when the package is analyzed, or bind package callees by qualified name so an importing scope's routines cannot satisfy them.
Activity
feat(sv): specialize package classes from importing scopes
feat(sv): specialize package classes from importing scopes
feat(sv): specialize package classes from importing scopes