# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61478] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61478 >
<masak> rakudo: class Base { has $.foo }; class Deriving is Base {}; say Deriving.new( :foo(5) ).foo() <p6eval> rakudo 34068: OUTPUT[You passed an initialization parameter that does not have a matching attribute. [...] <masak> TimToady: do I need to write Derived.new( Base{ :foo<5> } ) if Base has $.foo, but Derived doesn't? <TimToady> I though it was specced that it looks first for a protoobject of the right name, and if it doesn't find that, just uses the loose args <masak> TimToady: does that mean that Derived.new( :foo<5> ) would work, even if Derived itself does not define a $.foo ? <TimToady> yes, see S12:681 <masak> TimToady: thanks.