# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #117421]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117421 >


<diakopter> r: class A { has ::B $.b }; class B {}; print B.new; print
A.new.b.new
<p6eval> rakudo ba5e04: OUTPUT«B<-905822265>No such method 'new' for
invocant of type 'B'␤  in block  at /tmp/TluLYMLqwz:1␤␤»
<diakopter> masak: ^^ hmm
<masak> that looks wrong.
<masak> looks like it's retaining the stub, and not replacing it with
the real B.
* masak submits rakudobug
<diakopter> r: class B {}; class A { has B $.b }; print B.new; print A.new.b.new
<p6eval> rakudo ba5e04: OUTPUT«B<1785303324>B<1791592750>»
<diakopter> r: class B {}; class A { has ::B $.b }; print B.new; print
A.new.b.new
<p6eval> rakudo ba5e04: OUTPUT«B<-931868390>No such method 'new' for
invocant of type 'B'␤  in block  at /tmp/ovh8hRY1hT:1␤␤»
<masak> interesting.
<masak> so it has nothing to do with forward references. only with ::

Reply via email to