Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix jvm too for Nil return
  • Loading branch information
TimToady committed Nov 10, 2015
1 parent 8517d87 commit f6d7f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/rakudo/RakOps.java
Expand Up @@ -433,7 +433,7 @@ public static SixModelObject p6typecheckrv(SixModelObject rv, SixModelObject rou
* an Int that can unbox into an int or similar. */
StorageSpec spec = rtype.st.REPR.get_storage_spec(tc, rtype.st);
if (spec.inlineable == 0 || Ops.istype(rtype, decontValue.st.WHAT, tc) == 0) {
SixModelObject failure = Ops.getlex("Failure", tc);
SixModelObject failure = Ops.getlex("Nil", tc);
if (Ops.istype(failure, decontValue.st.WHAT, tc) == 0) {
SixModelObject thrower = getThrower(tc, "X::TypeCheck::Return");
if (thrower == null)
Expand Down

0 comments on commit f6d7f4d

Please sign in to comment.