Skip to content

Commit ddbbc84

Browse files
committed
Fudge for JVM, RT #126673
1 parent dbbab0e commit ddbbc84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

S06-advanced/return.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,10 @@ is Foo::official(), 44,
398398
sub return-Int ($x --> Int) { $x }
399399
is return-Int(42), 42, "Can return 42 through Int typecheck";
400400
is return-Int(Nil), Nil, "Can return Nil through Int typecheck";
401+
#?rakudo.jvm skip 'RT #126673'
401402
ok return-Int(Failure.new) ~~ Failure, "Can return Failure through Int typecheck";
402403
dies-ok { return-Int(42.0) }, "Can't return 42.0 through Int typecheck";
404+
#?rakudo.jvm todo 'code does not die'
403405
dies-ok { return-Int(Cool) }, "Can't return Cool through Int typecheck";
404406
}
405407
# vim: ft=perl6

0 commit comments

Comments
 (0)