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
Unhelpful errors for decr operator #12346
Comments
Removed Type-Defect label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
Interesting. Here's a better example: void main() {
int a = 7;
int b = a -- 2;
b = 5 & (a -- 2);
} (https://dartpad.dartlang.org/e1e1b8a97f5958fa80ed007dd73bec93) On line 3, there is a simple error:
|
And now it's even better: one error on line 3, two on line 4:
|
Username: kasperl
I have some code and when I by accident change a '-' in the source code to '--', I get 6 problems and one warning.
int index = hashCode & (buckets.length -- 1);
Expected an identifier
Expected to find ')'
Expected to find ';'
Expected to find ';'
Expected to find ';'
Unexpected token ')'
Undefined name ''
Somehow these warnings do not really help me spot the problem.
////////////////////////////////////////////////////////////////////////////////////
Editor: 0.6.15_r25822 (2013-08-06)
OS: Mac OS X - x86_64 (10.8.4)
JVM: 1.6.0_51
projects: 2
open dart files: 3
auto-run pub: true
localhost resolves to: 127.0.0.1
mem max/total/free: 996 / 148 / 66 MB
thread count: 17
index: 157401 relationships in 35920 keys in 152 sources
SDK installed: true
Dartium installed: true
analysis engine: new
The text was updated successfully, but these errors were encountered: