Skip to content

Commit 27424bd

Browse files
committed
Test non-lexical whenever works
Closes rakudo/rakudo#1428 Rakudo fix: rakudo/rakudo@0ec8e088c2
1 parent 6e724f1 commit 27424bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

S17-supply/syntax.t

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6.c;
22
use Test;
33

4-
plan 60;
4+
plan 61;
55

66
{
77
my $s = supply {
@@ -441,4 +441,10 @@ throws-like 'done', X::ControlFlow, illegal => 'done';
441441
nok $closed, 'CLOSE phasers do not run twice (normal termination then .close)';
442442
}
443443

444+
{ # https://github.com/rakudo/rakudo/issues/1428
445+
sub foo { whenever Promise.in(.1) {
446+
pass 'whenever not in lexical scope of react works';
447+
}}; react foo
448+
}
449+
444450
# vim: ft=perl6 expandtab sw=4

0 commit comments

Comments
 (0)