This fails now with a typed exception and a fitting error message: $ perl6 -e 'sub foo { 2 }; say 1 ?? foo !! 3' ===SORRY!=== Error while compiling -e Your !! was gobbled by the expression in the middle; please parenthesize at -e:1 ------> sub foo { 2 }; say 1 ?? foo !!⏏ 3 expecting any of: infix infix stopper postfix
I added a test for the typed exception to S03-operators/ternary.t. I'm closing this ticket as 'resolved'.