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 42df59c commit 10a658dCopy full SHA for 10a658d
integration/weird-errors.t
@@ -3,7 +3,7 @@ use Test;
3
use lib 't/spec/packages';
4
use Test::Util;
5
6
-plan 16;
+plan 17;
7
8
# this used to segfault in rakudo
9
#?niecza skip 'todo'
@@ -130,3 +130,17 @@ is_run '{;}',
130
err => '',
131
},
132
'empty code block does not crash (used to do that on JVM)';
133
+
134
+# RT #125227
135
+{
136
+ my $code = q:to'--END--';
137
+ class C {
138
+ has $!x is rw;
139
+ }
140
+ --END--
141
+ is_run(
142
+ $code,
143
+ { status => 0, err => -> $o { $o ~~ /useless/ && $o ~~ /':2'/ } },
144
+ 'useless use of is rw reported on meaningful line'
145
+ );
146
+}
0 commit comments