Skip to content

Commit 00c4d36

Browse files
committed
Test whatever curry + regex + methodcall
Closes rakudo/rakudo#1487 Rakudo fix: rakudo/rakudo@2847e509d8
1 parent 2f76cca commit 00c4d36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S02-types/whatever.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use lib 't/spec/packages';
55
use Test;
66
use Test::Util;
77

8-
plan 126;
8+
plan 127;
99

1010
# L<S02/The Whatever Object/"The * character as a standalone term captures the notion of">
1111
# L<S02/Native types/"If any native type is explicitly initialized to">
@@ -479,4 +479,8 @@ subtest 'various wild cases' => {
479479
is-deeply [f, f, f], [<c b a>], 'postfix curry with another curry inside';
480480
}
481481

482+
# https://github.com/rakudo/rakudo/issues/1487
483+
is-deeply (*.match(/.+/).flip)(42), "24",
484+
'curry + regex + method call does not crash';
485+
482486
# vim: ft=perl6

0 commit comments

Comments
 (0)