# New Ticket Created by "Dave Whipp" # Please include the string: [perl #61916] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61916 >
The default "new" method allows values of attributes to be set as named args -- but rakudo doesn't hoist params from base classes: <dwhipp> rakudo: class A { has $.foo }; class B is A { has $.bar }; B.new( foo => 1, bar => 2) <p6eval> rakudo 34834: OUTPUT«You passed an initialization parameter that does not have a matching attribute.current instr.: 'die' pc 14812 (src/builtins/control.pir:204)» <dwhipp> pugs: class A { has $.foo }; class B is A { has $.bar }; B.new( foo => 1, bar => 2) <p6eval> pugs: RESULT«B.new((\("bar", 2), \("foo", 1))»