Skip to content

Commit e248ff0

Browse files
committed
Test that an accessor from a parrot class counts as an implementation of a required method.
1 parent ed2fdad commit e248ff0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S14-roles/stubs.t

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

4-
plan 8;
4+
plan 9;
55

66
role WithStub { method a() { ... } };
77
role ProvidesStub1 { method a() { 1 } };
@@ -28,3 +28,6 @@ lives_ok { eval 'class ChildA is ProvidesA does WithStub { }' },
2828
'stubbed method can come from parent class too';
2929

3030
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

Comments
 (0)