You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ perl6 -e'my@x=^10;my@y=2..3;my@z=@y??@x[@y]:v!!@x'
===SORRY!=== Error while compiling -e
Please use !! rather than :
at -e:1
------> my@x=^10;my@y=2..3;my@z=@y??@x[@y]:v⏏!!@x
expecting any of:
pair value
The :v triggers the parse error trying to be helpful even though the !!
is correctly used
This was fixed promptly. The code now dies with the right exception.
$ perl6 -e'my@x=^10;my@y=2..3;my@z=@y??@x[@y]:v!!@x'
===SORRY!=== Error while compiling -e
Precedence of :v is too loose to use inside ?? !!; please parenthesize
at -e:1
------> my@x=^10;my@y=2..3;my@z=@y??@x[@y]:v⏏!!@x
expecting any of:
pair value
Migrated from rt.perl.org#124323 (status was 'resolved')
Searchable as RT124323$
The text was updated successfully, but these errors were encountered: