Feedback
Shared method bare call to instance sub reaches runtime as undefined variable
- Status
- Fixed
- Fixed in
- v26.5.8
- Source discussion
- https://forum.objo.dev/d/209-subroutine-isnt-found-is-seen-by-compiler-as-variable
- Last updated
- 2026-06-01
Public summary
Calling an instance subroutine by bare name from a shared method compiles, but fails at runtime with Undefined variable. The compiler should reject this as an invalid shared-to-instance member call, or otherwise require an explicit valid receiver.