-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
dart-archive/linter
#1531Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.Issues related to lint rules that report a problem when it isn't a problem.
Description
In the code below, await is necessary.
import 'dart:async';
Future<num> foo() async => 1;
// The lint unnecessary_await_in_return reports an issue here, but the await is necessary
// as an implicit downcast is necessary.
// We cannot change the code to `Future<int> bar() => foo()`
Future<int> bar() async => await foo();
void main() async => print(await bar());
Metadata
Metadata
Assignees
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.Issues related to lint rules that report a problem when it isn't a problem.