Dart analyzer and dart2js disagree about 'static' as variable name #19552
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
This issue was originally filed by @butlermatt
Using this program:
void main() {
var static = 'Hello World';
print(static);
}
This program works in dart vm with and without checked mode. This program passes the dartanalzyer however dart2js throws an error:
Error: Expected identifier, but got '='.
var static = 'Hello World';
^
Error Compilation failed.
This occurs with Dart SDK version 1.5.0-dev.4.2 and 1.5.0-dev.4.15 in 64-bit linux. (Editor also shows no errors)
The text was updated successfully, but these errors were encountered: