-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listdependency: dartDart team may need to help usDart team may need to help usframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
See this code:
void main() async {
await Future<int>.error('error').catchError((e) {});
}
This code is guaranteed to throw a runtime error. However, there is currently no static error reported. As part of dart-lang/sdk#49215, the dart analyzer will start to report static errors for code like this. Before analyzer can start reporting these static errors by default, the Flutter codebases must be cleaned of them.
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listdependency: dartDart team may need to help usDart team may need to help usframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.