Avoid top-level search for nested constant reference from nil in defined?
Fixes [Bug #16332]
Constant access was changed to no longer allow top-level constant access through nil, but defined? wasn't changed at the same time to stay consistent.
nil
defined?
Use a separate defined type to distinguish between a constant referenced from the current lexical scope and one referenced from another namespace.
Avoid top-level search for nested constant reference from nil in defined?
Fixes [Bug #16332]
Constant access was changed to no longer allow top-level constant access
through
nil
, butdefined?
wasn't changed at the same time to stayconsistent.
Use a separate defined type to distinguish between a constant
referenced from the current lexical scope and one referenced from
another namespace.