I think the problem is that there's already another syntax using that
sequence: coercion types. FF(FF(2)) is being parsed as a coercion type from
FF to FF(... and then it falls over because it's not expecting nested
coercion types.

On Tue, Aug 30, 2016 at 7:13 PM, Brian S. Julin <
perl6-bugs-follo...@perl.org> wrote:

> # New Ticket Created by  "Brian S. Julin"
> # Please include the string:  [perl #129142]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org/Ticket/Display.html?id=129142 >
>
>
>
>
> $ perl6 -e 'enum FF <zero one two three>; FF(2).perl.say'
> FF::two
> $ perl6 -e 'enum FF <zero one two three>; FF(FF::two).perl.say'
> FF::two
> $ perl6 -e 'enum FF <zero one two three>; FF(two).perl.say'
> FF::two
> $ perl6 -e 'enum FF <zero one two three>; FF(abs(-2)).perl.say'
> FF::two
> $ perl6 -e 'enum FF <zero one two three>; FF(FF(2)).perl.say'
> ===SORRY!=== Error while compiling -e
> Unable to parse expression in typename; couldn't find final ')'
> at -e:1
> ------> enum FF <zero one two three>; FF(FF(⏏2)).perl.say
>
>
> # o.O
> $ perl6 -e 'enum FF <zero one two three>; enum GG <fee fie foo fum>;
> FF(foo).perl.say'
> FF
>
> $ perl6 -e 'enum FF <zero one two three>; enum GG <fee fie foo fum>;
> FF(GG(foo)).perl.say'
> FF(GG(GG))
>
> $ perl6 -e 'enum FF <zero one two three>; enum GG <fee fie foo fum>;
> FF(GG(2)).perl.say'
> ===SORRY!=== Error while compiling -e
> Unable to parse expression in typename; couldn't find final ')'
> at -e:1
> ------> hree>; enum GG <fee fie foo fum>; FF(GG(⏏2)).perl.say
>



-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to