We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ac03f commit 06d2abbCopy full SHA for 06d2abb
S04-statements/sink.t
@@ -1,7 +1,9 @@
1
use v6;
2
+use lib $?FILE.IO.parent(2).add: 'packages';
3
use Test;
4
+use Test::Util;
5
-plan 8;
6
+plan 9;
7
8
# RT #117235
9
{
@@ -93,3 +95,7 @@ subtest 'sub calls in last statement of sunk `for` get sunk' => {
93
95
throws-like { sub foo {fail}; for ^1 { foo }; Nil }, Exception,
94
96
'block `for` with sub that returns Failure';
97
}
98
+
99
+# https://github.com/rakudo/rakudo/issues/1693
100
+is_run 「unit package A; our sub need() {}; for <s> { A::need }; print 'pass'」,
101
+ { :out<pass>, :err(''), :0status}, 'no crash in for ... { Package::foo }';
0 commit comments