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

'can not set method' error in wrong location. #328

Closed
rakudrama opened this issue Nov 3, 2011 · 3 comments
Closed

'can not set method' error in wrong location. #328

rakudrama opened this issue Nov 3, 2011 · 3 comments
Labels
P3 A lower priority bug or feature request

Comments

@rakudrama
Copy link
Member

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;
    ^

@rakudrama
Copy link
Member Author

Added Triaged label.

@DartBot
Copy link

DartBot commented Nov 19, 2011

This comment was originally written by jimhug@google.com


Set owner to jimhug@google.com.
Added Started label.

@DartBot
Copy link

DartBot commented Nov 19, 2011

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.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

2 participants