Skip to content

Commit

Permalink
op asgn const now is considered an assignment for defined?
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed May 15, 2024
1 parent 969a774 commit 2028da3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/org/jruby/ir/builder/IRBuilderAST.java
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,8 @@ public Operand run() {
// Try verifying definition, and if we get an JumpException exception, process it with the rescue block above
return protectCodeWithRescue(protectedCode, rescueBlock);
}
case OPASGNCONSTDECLNODE:
return new FrozenString("assignment");
default:
return new FrozenString("expression");
}
Expand Down

0 comments on commit 2028da3

Please sign in to comment.