You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<masak> rakudo: role A { has @!foo; method bar() { @!foo ~~ (1,2); }
}; class B does A { has $.baz; }; B.new().bar()
<p6eval> rakudo 6999e5: OUTPUT«Null PMC access in isa()in method A[]::bar [...]
* masak submits rakudobug
<masak> rakudo: role A { has @!foo; method bar() { say @!foo } };
class B does A { has $.baz; }; B.new().bar()
<p6eval> rakudo 6999e5: OUTPUT«Null PMC access in isa()in method A[]::bar [...]
I've been testing the phenomenon pretty extensively, and it doesn't
seem to matter whether it's @!foo, $!foo or %!foo -- the error occurs
in all those cases. Also doesn't matter if it's $.baz or $!baz.
Removing $.baz entirely makes the error go away. Defining &bar in B
instead of A also doesn't make any difference.
<masak> rakudo: role A { has @!foo; method bar() { @!foo ~~ (1,2); }
}; class B does A { has $.baz; }; B.new().bar()
<p6eval> rakudo 6999e5: OUTPUT«Null PMC access in isa()in method
A[]::bar [...]
* masak submits rakudobug
<masak> rakudo: role A { has @!foo; method bar() { say @!foo } };
class B does A { has $.baz; }; B.new().bar()
<p6eval> rakudo 6999e5: OUTPUT«Null PMC access in isa()in method
A[]::bar [...]
I've been testing the phenomenon pretty extensively, and it doesn't
seem to matter whether it's @!foo, $!foo or %!foo -- the error occurs
in all those cases. Also doesn't matter if it's $.baz or $!baz.
Removing $.baz entirely makes the error go away. Defining &bar in B
instead of A also doesn't make any difference.
Fixed in git 6999e58 and test added to S14-role/attributes.t.
Migrated from rt.perl.org#67992 (status was 'resolved')
Searchable as RT67992$
The text was updated successfully, but these errors were encountered: