Skip to content

Commit 64fef88

Browse files
committed
Test for RT #129827.
1 parent c46f137 commit 64fef88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S06-advanced/return.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See also t/blocks/return.t, which overlaps in scope.
1515
# reference for the spec for 'return', but I couldn't find
1616
# one either.
1717

18-
plan 98;
18+
plan 99;
1919

2020
# These test the returning of values from a subroutine.
2121
# We test each data-type with 4 different styles of return.
@@ -402,4 +402,8 @@ is Foo::official(), 44,
402402
dies-ok { return-Int(42.0) }, "Can't return 42.0 through Int typecheck";
403403
dies-ok { return-Int(Cool) }, "Can't return Cool through Int typecheck";
404404
}
405+
406+
# RT #129827
407+
is sub { 42.return }(), 42, "Sub doing 42.return works";
408+
405409
# vim: ft=perl6

0 commit comments

Comments
 (0)