On Wed Feb 11 05:15:12 2009, jn...@jnthn.net wrote: > On Fri Jan 30 01:29:38 2009, masak wrote: > > The failure during PIR compilation turned out to be due to an undeclared > > identifier 'B'. > > > > $ cat A.pm > > use v6; > > > > class A { > > has B $!b; > > } > > $ cat A/B.pm > > use v6; > > use A; > > > > class A::B is A { > > } > > $ perl6 --target=pir --output=A.pir A.pm > > $ perl6 --target=pir --output=A/B.pir A/B.pm > > Lexical 'self' not found > > [...] > > > > But that makes this bug a variant of #67268. Marking it as such. > > Actually you don't need anything fancy to re-produce this, just: > > class A { has B $.x } > > In the REPL does it. > And that now reports a "Malformed declaration" at compile time, following STD.pm's lead (though we can't say it's a my or has declaration yet, but I've put in a comment noting the difference).
So, fixed in git fba805c. Thanks, Jonathan