On Mon Oct 10 02:13:12 2011, masak wrote:
> On Sun Oct 09 09:10:12 2011, coke wrote:
> > On Thu Aug 12 14:35:18 2010, masak wrote:
> > > <tylercurtis> rakudo: role A { my $!foo; }; role B { my $!foo; };
> > > class C does A does B; say 'alive';
> >
> > 12:08 < [Coke]> rakudo: role A { my $!foo; }; role B { my $!foo; };
> > class C
> > does A does B; say 'alive';
> > 12:08 <+p6eval> rakudo f6eb61: OUTPUT«===SORRY!===Too late for
> > semicolon form
> > of $*PKGDECL definition at line 1, near "say 'alive"»
> >
> >
> > Can you rephrase the code to either still show the issue or show that
> > it's fixed?
>
> Certainly.
>
> <masak> rakudo: role A { my $!foo; }; role B { my $!foo; }; class C does
> A does B {}; say 'alive'
> <p6eval> rakudo f6eb61: OUTPUT«alive»
>
> So, it's fixed now. Marking as needstest.
For the records: Nowadays this fails with X::Syntax::Variable::Twigil:
$ perl6-m -e 'role A { my $!foo; }; role B { my $!foo; }; class C does A does B
{}; say "alive"'
===SORRY!=== Error while compiling -e
Cannot use ! twigil on my variable
at -e:1
------> role A { my $!foo⏏; }; role B { my $!foo; }; class C does
expecting any of:
constraint
I changed the skipped test in S14-roles/mixin.t to 'throws_like':
https://github.com/perl6/roast/commit/5cb6bc1eae