Skip to content

Commit

Permalink
Force Block in signature.
Browse files Browse the repository at this point in the history
headius committed Mar 22, 2018
1 parent b1b1644 commit b4b496a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ir/targets/InvokeSite.java
Original file line number Diff line number Diff line change
@@ -312,7 +312,7 @@ public Binder prepareBinder(boolean varargs) {

// add block if needed
if (signature.lastArgType() != Block.class) {
binder = binder.append("block", Block.NULL_BLOCK);
binder = binder.append("block", Block.class, Block.NULL_BLOCK);
}

// bind to site

0 comments on commit b4b496a

Please sign in to comment.