A typed exception X::Syntax::NonAssociative is now thrown.

$ perl6-m -e 'say [+] "08:12:23".split(":") Z* 60 X** reverse ^3'
===SORRY!=== Error while compiling -e
Operators 'Z*' and 'X**' are non-associative and require parentheses
at -e:1
------> say [+] "08:12:23".split(":") Z* 60 X⏏** reverse ^3
    expecting any of:
        postfix
        infix stopper
        infix or meta-infix

$ perl6 -e 'say 4 X+> 1...2'
===SORRY!=== Error while compiling -e
Operators 'X+>' and '...' are non-associative and require parentheses
at -e:1
------> say 4 X+> 1.⏏..2
    expecting any of:
        postfix
        dotty method or postfix

There are two (now passing) tests in S03-operators/precedence.t.

I'm closing this ticket now.

Reply via email to