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 ed2fdad commit e248ff0Copy full SHA for e248ff0
S14-roles/stubs.t
@@ -1,7 +1,7 @@
1
use v6;
2
use Test;
3
4
-plan 8;
+plan 9;
5
6
role WithStub { method a() { ... } };
7
role ProvidesStub1 { method a() { 1 } };
@@ -28,3 +28,6 @@ lives_ok { eval 'class ChildA is ProvidesA does WithStub { }' },
28
'stubbed method can come from parent class too';
29
30
lives_ok { eval 'class RT115212 does WithStub { has $.a }' }, 'stubbed method can come from accessor';
31
+
32
+class HasA { has $.a }
33
+lives_ok { eval 'class RT115212Child is HasA does WithStub { }' }, 'stubbed method can come from accessor in parent class';
0 commit comments