Actions
Bug #20748
closedIssue with defined? given method call with block in prism compiler
Bug #20748:
Issue with defined? given method call with block in prism compiler
Description
Updated by kddnewton (Kevin Newton) almost 2 years ago
- Assignee set to kddnewton (Kevin Newton)
I have opened a PR for this to match the behavior exactly, but I will say I think Prism's behavior is actually correct here. Right now compile.c results in:
whereas Prism results in:
I have updated the code to match compile.c, but I think it's incorrect that we are falling back to "expression" because it has an explicit block versus an implicit one.
Updated by luke-gru (Luke Gruber) almost 2 years ago
I agree it's weird but it could cause an incompatibility I guess, defined?() is a weird one for sure.
Updated by kddnewton (Kevin Newton) almost 2 years ago
- Status changed from Open to Closed
Applied in changeset git|1e52dde82af10f2a2ec648b34dce30bec4154245.
[PRISM] Match defined behavior for explicit block
Fixes [Bug #20748]
Actions