This now throws a typed exception X::Syntax::NonAssociative

$ perl6 -e '1, 2 Z 3, 4 X 5, 6'
===SORRY!=== Error while compiling -e
Operators 'Z' and 'X' are non-associative and require parentheses
at -e:1
------> 1, 2 Z 3, 4 X⏏ 5, 6
    expecting any of:
        postfix
        infix stopper
        infix or meta-infix

$ perl6 -e 'my Mu $a = (1 | 2 ^ 3)'
===SORRY!=== Error while compiling -e
Operators '|' and '^' are non-associative and require parentheses
at -e:1
------> my Mu $a = (1 | 2 ⏏^ 3)
    expecting any of:
        postfix
        infix stopper
        infix or meta-infix

The tests in S03-operators/precedence.t have been unfudged with commit 
https://github.com/perl6/roast/commit/e8f7579421

I'm closing this ticket now.

Reply via email to