Skip to content

Commit 1eea28d

Browse files
committed
'it' marks itself as an anonreq for parameters method
1 parent 5a83eb0 commit 1eea28d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/jruby/prism/builder/IRBuilderPrism.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ public void receiveBlockArgs(Node node) {
565565
Variable keywords = addResultInstr(new ReceiveKeywordsInstr(temp(), true, true));
566566
Variable v = getLocalVariable(symbol("it"), 0);
567567
markIt(staticScope);
568+
((IRClosure) scope).setArgumentDescriptors(new ArgumentDescriptor[] { new ArgumentDescriptor(ArgumentType.anonreq) });
568569
addInstr(new ReceivePreReqdArgInstr(v, keywords, 0));
569570
} else if (node instanceof BlockParametersNode params) {
570571
// FIXME: Missing locals? Not sure how we handle those but I would have thought with a scope?

0 commit comments

Comments
 (0)