New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'say 1 if 0 if 1 { say 3 }' parsing bug in Rakudo (and STD) #1770
Comments
From @masak<diakopter> rakudo: say 1 if 2 if 3 { say 3 } Judging from the outputs above, it seems like Rakudo hallucinates a This currently seems to be a parsing bug in STD also. <diakopter> std: say 1 if 2 if 3 { say 3 } |
@coke - Status changed from 'new' to 'open' |
From @diakopterOn Thu May 20 15:50:01 2010, masak wrote:
FYI, now STD DTRT: 14:14 < diakopter> std: say 1 if 2 if 3 { say 3 } |
From @cokeOn Tue May 29 12:15:49 2012, diakopter wrote:
STD changed for the better: 20:17 < [Coke]> std: say 1 if 2 if 3 { say 3 } Rakudo is correctly failing. 20:18 < [Coke]> m: say 1 if 2 if 3 { say 3 } The error is not the same as STD's, but I think it's good enough - closable with tests. |
From @peschwaOn Sat Feb 22 17:20:15 2014, coke wrote:
Added a test to roast in commit feeea52 as per the example above. |
From @peschwaOn Sun Jul 20 01:12:18 2014, peschwa@gmail.com wrote:
To add to that: [0] makes the .reason of the thrown X::Syntax::Confused match the one that STD gives. Spectest looks clean, but I'm not sure if there might be untested cases where the message could be misleading. |
From @FROGGSPR merged: rakudo/rakudo@9a9f357fea |
@FROGGS - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#75230 (status was 'resolved')
Searchable as RT75230$
The text was updated successfully, but these errors were encountered: