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


<masak> rakudo: class A { has $.val }; class B is A { has $.val }; my
$b = B.new(A{ :val("A") }); say "alive"
<p6eval> rakudo b570a2: OUTPUT«flattened parameters must be a hash or
array␤ in main program body at line 22:/tmp/DYw5OTlNCI␤»
<masak> this should work, no?
<masak> I think it even used to...
<masak> alpha: class A { has $.val }; class B is A { has $.val }; my
$b = B.new(A{ :val("A") }); say $b.A::val
<p6eval> alpha : OUTPUT«Use of uninitialized value␤␤»
* masak submits rakudobug

alpha didn't get the accessor right, but it parses the constructor
syntax without a problem. There are spectests for this in
S12-construction/new.t, but they're TODO'd.

Reply via email to