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
LTA error message when trying to use parens to declare enums (enum Animal (Cat, Dog)) #4902
Comments
From @AlexDanielCode: Result: Well, the error message is not so good, but you can say “who is going to do Code: Result: Which is just a shorter version of this: Code: Result: In which case you probably want to do this instead: Code: Result: Possible solution: |
From @jnthnOn Tue Dec 22 05:30:41 2015, alex.jakimenko@gmail.com wrote:
We now just report Cat and Dog as undeclared symbols, which makes clear that they were interpreted as lookups. This means they get a line number. Turns out that: constant foo = bar; Did the same kind of blow-up (cannot invoke) rather than reporting bar undeclared; I've also fixed that. Tests for both in S32-exceptions/misc.t. |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126987 (status was 'resolved')
Searchable as RT126987$
The text was updated successfully, but these errors were encountered: