On Mon Jan 12 14:44:35 2009, moritz wrote: > I've added some tests to t/spec/S12-construction/new.t which boil down to: > > #+snip > class Parent { > has $.x; > } > > class Child is Parent { > has $.y; > } > > my $o; > ... > > lives_ok { $o = Child.new( :y(4), Parent{ :x<5> }) }, > 'can instanticate class with explicit specification of parent > attrib'; > > #?rakudo todo 'OO initialization bug' > is $o.y, 4, '... worked for the child'; > is $o.x, 5, '... worked for the parent'; > #-snip > > Here the initialization of Parent{ :x<5> } worked, but that of the Child > failed ($o.y is undef). > I think this is a dupe of an already resolved ticket (I remember fixing a bug like this, and further we already have got these tests unfudged and that file is in spectest.data). So resolving ticket.
Thanks, Jonathan