-
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
Misleading errormessage when using a setter with () #395
Comments
This comment was originally written by [email protected] Added Area-Editor, Triaged labels. |
Removed Area-Editor label. |
This comment was originally written by [email protected] http://codereview.chromium.org/8643001 $ dartc --noincremental /tmp/h.dart Set owner to [email protected]. |
This comment was originally written by [email protected] r1750 Added Fixed label. |
Tested on travis here: https://travis-ci.org/dart-lang/dev_compiler/builds/96609818 Note, electron shows up in the log as: Chrome 47.0.2526 This fixes #395 [email protected] Review URL: https://codereview.chromium.org/1521283003 .
This issue was originally filed by [email protected]
What steps will reproduce the problem?
Element e = doc.querySelector('#test');
e.textContent('irgendwas');
Clearly the way the setter is used is wrong. But for compliance, why can't it be used as any other method?
If () are not acceptable for setters for whatever reason, the message should not be "is not a method". It should be "is a setter and must not be called like a method" or something like that.
The text was updated successfully, but these errors were encountered: