# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #71958]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=71958 >
This be Rakudo db84bc, running on Parrot r43174.
$ perl6 -e 'class A { has @.x is rw }; class B {}; my B @bs;
A.new().x[0] = A.new()'
Assignment type check failed; expected B, but got A
in Main (file <unknown>, line <unknown>)
The presence of @bs causes the assignment type check failure. It's as
if the typing of @bs rubs off on @.x. When @.x is explicitly typed
('my A @.x is rw'), the bug goes away.