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
Check iterators #14178
Comments
cc @bwilkerson. |
cc: gbracha@google.com, We do currently create a warning when the condition of an if-statement isn't a boolean. cc @gbracha. |
Added Analyzer-Hint label. |
The spec does not allow for a warning. It could be a hint. |
Correct. The issue is marked as a hint. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
This is done as of: cb7aa02. |
Username: kasperl
When we have code like this:
MyClass m = ...;
for (var x in m) {
...
}
it would be useful to get a warning or a hint if m doesn't implement the 'iterator' getter. Not sure if this is covered by the spec, but it might be (in which case it should be a warning).
////////////////////////////////////////////////////////////////////////////////////
Editor: 0.1.2_r28706 (2013-10-16)
OS: Linux - i386 (3.2.5-gg1336)
JVM: 1.7.0-google-v5
projects: 1
open dart files: 11
auto-run pub: true
localhost resolves to: 127.0.0.1
mem max/total/free: 1933 / 684 / 147 MB
thread count: 32
index: 408792 relationships in 86532 keys in 297 sources
SDK installed: true
Dartium installed: false
The text was updated successfully, but these errors were encountered: