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 3a7da94 commit 12561b6Copy full SHA for 12561b6
S12-class/basic.t
@@ -103,12 +103,13 @@ ok(One::Two.new, 'created One::Two after One::Two::Three');
103
eval_dies_ok 'class One::Two { }', 'cannot redeclare an existing class';
104
eval_lives_ok q[BEGIN {class Level1::Level2::Level3 {};}; class Level1::Level2 {};], 'RT 62898';
105
106
-#?niecza skip 'Methods must be used in some kind of package'
107
{
108
- class A61354_1 {
109
- eval('method x { "OH HAI" }')
110
- };
111
- dies_ok { A61354_1.x }, "can't just use eval to add method to class";
+ eval_dies_ok q[
+ class A61354_1 {
+ eval('method x { "OH HAI" }')
+ };
+ A61354_1.x;
112
+ ], "can't just use eval to add method to class";
113
}
114
115
# RT #67784
0 commit comments