Feature request: Warning when intermingling regular methods and cascades #12733
Labels
analyzer-ux
area-analyzer
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by chris...@gmail.com
In Dart Editor, it would be nice to get a warning when intermingling method cascades and regular method calls (or maybe any other operator).
Consider:
The programmer might expect that the
keys
variable would be assigned to a list, but instead would get a runtime error. So perhaps a warning could be issued in such cases?The keys property is undefined on the string above, so a warning is already issued by Dart Editor. Still, the cause may not be immediately obvious. Also, there are more obscure cases in which the intended receiver and the actual receiver both support the same method call (e.g. when working with Futures).
Dart VM version: 0.6.19.0_r26297 (Sat Aug 17 07:12:38 2013) on "linux_x64"
The text was updated successfully, but these errors were encountered: