DartEdit failed to warn the use of a non-existent method from Future<Type> #14983
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
closed-obsolete
Closed as the reported issue is no longer relevant
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by @tomyeh
The following is the same code. Dart Edit shall show a warning or error to indicate String has no method called m, but it doesn't. I remember it was OK in previous version. Sure, we can declare the closure as (String s) {...}. However, it is more convenient if Dart Editor can help.
Dart version: 0.8.10.6_r30036
Future<String> f() {}
Future g()
=> f().then((s) {
s.m = "a";
});
The text was updated successfully, but these errors were encountered: