> On 30 Dec 2015, at 17:32, Zoffix Znet (via RT) <perl6-bugs-follo...@perl.org> > wrote: > > # New Ticket Created by Zoffix Znet > # Please include the string: [perl #127091] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=127091 > > > > In the output below, you can see that inserting a new line before the comma > results in an error. > > Mentioned it here too: http://irclog.perlgeek.de/perl6/2015-12-30#i_11804178 > > <ZoffixW> m: my @c = ( [{foo => 'bar'},],); > <camelia> rakudo-moar d08e04: ( no output ) > <ZoffixW> m: my @c = ( [{foo => 'bar'} ,],); > <camelia> rakudo-moar d08e04: ( no output ) > <ZoffixW> m: my @c = ( [{foo => 'bar'},],); > <camelia> rakudo-moar d08e04: OUTPUT«===SORRY!=== Error while compiling > /tmp/4i3gP6j3p1Bogus statementat /tmp/4i3gP6j3p1:2------> my @c = ( [{foo > => 'bar'}⏏<EOL> expecting any of: prefix statement end > term» > <ZoffixW> m: my @c = ( [{foo => 'bar'}  ,],); > <camelia> rakudo-moar d08e04: OUTPUT«===SORRY!=== Error while compiling > /tmp/ClpK2AcBTFBogus statementat /tmp/ClpK2AcBTF:2------> my @c = ( [{foo > => 'bar'}⏏  expecting any of: prefix statement end > term»
I concur with timotimo, this is ENOTABUG, but a WAT! A closing brace at the end of a line (with or without whitespace) is equivalent to a ; *ALWAYS*. And thus the statement becomes bogus. Can be closed afaiac . Liz