Fixed with 4f338014ae662c790f964 , tests are still needed

> On 05 Jan 2016, at 21:03, Zoffix Znet (via RT) <perl6-bugs-follo...@perl.org> 
> wrote:
> 
> # New Ticket Created by  Zoffix Znet 
> # Please include the string:  [perl #127176]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=127176 >
> 
> 
> If I `use` a class with a compile error, the message about it is displayed on 
> the terminal twice. This does not happen if the syntax error is inside a 
> script or -e '':
> 
> $ cat Foo.pm 
> class Foo { blarg! }
> $ perl6 -I. -MFoo -e ''
> ===SORRY!=== Error while compiling /tmp/tmp.Fc0CJT1rlv/Foo.pm
> Negation metaoperator not followed by valid infix
> at /tmp/tmp.Fc0CJT1rlv/Foo.pm:1
> ------> class Foo { blarg!⏏ }
>    expecting any of:
>        infix
>        infix stopper
> ===SORRY!=== Error while compiling /tmp/tmp.Fc0CJT1rlv/Foo.pm
> Negation metaoperator not followed by valid infix
> at /tmp/tmp.Fc0CJT1rlv/Foo.pm:1
> ------> class Foo { blarg!⏏ }
>    expecting any of:
>        infix
>        infix stopper
> 
> 
> 
> $ perl6 -e 'class Foo { blarg! }'
> ===SORRY!=== Error while compiling -e
> Negation metaoperator not followed by valid infix
> at -e:1
> ------> class Foo { blarg!⏏ }
>    expecting any of:
>        infix
>        infix stopper



Reply via email to