Skip to content
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

Error on while (0){} #5526

Closed
p6rt opened this issue Aug 3, 2016 · 9 comments
Closed

Error on while (0){} #5526

p6rt opened this issue Aug 3, 2016 · 9 comments
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded

Comments

@p6rt
Copy link

p6rt commented Aug 3, 2016

Migrated from rt.perl.org#128830 (status was 'resolved')

Searchable as RT128830$

@p6rt
Copy link
Author

p6rt commented Aug 3, 2016

From @zoffixznet

The issue is the lack of space between () and {}​:

m​: while (0){}
rakudo-moar 051339​: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Missing block␤at <tmp>​:1␤------> 3while (0){}7⏏5<EOL>␤ expecting any of​:␤ block or pointy block␤»

See discussion at http://irclog.perlgeek.de/perl6/2016-08-03#i_12962755

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

p6rt commented Aug 3, 2016

From @TimToady

We now examine the preceding character, and if it's a closing brace, suggest use of whitespace before curlies taken as a hash subscript.

Fixed in 7ec824e52ab5b285cda47179e6f41e452d870762

1 similar comment
@p6rt
Copy link
Author

p6rt commented Aug 3, 2016

From @TimToady

We now examine the preceding character, and if it's a closing brace, suggest use of whitespace before curlies taken as a hash subscript.

Fixed in 7ec824e52ab5b285cda47179e6f41e452d870762

@p6rt
Copy link
Author

p6rt commented Aug 3, 2016

@TimToady - Status changed from 'new' to 'resolved'

@p6rt
Copy link
Author

p6rt commented Aug 3, 2016

From @coke

Re-opening, marking testneeded.
--
Will "Coke" Coleda

1 similar comment
@p6rt
Copy link
Author

p6rt commented Aug 3, 2016

From @coke

Re-opening, marking testneeded.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 3, 2016

@coke - Status changed from 'resolved' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 2, 2016

From @zoffixznet

Tests added in Raku/roast@3fc7019d30

@p6rt
Copy link
Author

p6rt commented Sep 2, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Sep 2, 2016
@p6rt p6rt added LTA Less Than Awesome; typically an error message that could be better testneeded labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded
Projects
None yet
Development

No branches or pull requests

1 participant