-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
'can not set method' error in wrong location. #328
Labels
P3
A lower priority bug or feature request
Comments
Added Triaged label. |
This comment was originally written by jimhug@google.com Set owner to jimhug@google.com. |
This comment was originally written by jimhug@google.com http://codereview.chromium.org/8536056/ Needs a test once testing infrastructure supports precise warning levels and line numbers. Added Fixed label. |
nex3
pushed a commit
that referenced
this issue
Aug 31, 2016
make dev_compiler slightly happier with dartdoc
This was referenced Oct 29, 2020
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
f() => 1;
main() {
f = null;
}
$ frogsh bug1a.dart
bug1a.dart:1:1: error: can not set method
f() => 1;
^^^^^^^^^
compilation failed with 1 errors
I would expect the error at the assignment.
For reference, the VM says:
'bug1a.dart': Error: line 4 pos 5: Left hand side of '=' is not assignable
f = null;
^
The text was updated successfully, but these errors were encountered: