This fails now with a typed exception "X::Syntax::ArgFlattener".

$ perl6 -e 'say(|(|([4])))'
===SORRY!=== Error while compiling -e
Arg-flattening | is only valid in an argument list
at -e:1
------> say(|(|⏏([4])))

Please note that the first '|' is valid (argument list for 'say'):

$ perl6 -e 'say(|([4]))'
4

I added a test to S32-exceptions/misc.t with commit 
https://github.com/perl6/roast/commit/3c982d5b9e

I'm closing this ticket as 'resolved'.

Reply via email to