Closed
Description
Describe the issue
A possible false positive for the discarded_futures
lint.
To Reproduce
Stream<int> foo() {
return Stream.fromFuture(futureInt()); // <== lint
}
Future<int> futureInt() => Future.value(17);
Expected behavior
I think the lint shouldn't be triggered, the Future
isn't discarded, it is consumed by Stream.fromFuture
.
Metadata
Metadata
Assignees
Labels
A lower priority bug or feature requestFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.Issues with the analyzer's support for the linter packageIssues related to lint rules that fail to report a problem.Issues related to lint rules that report a problem when it isn't a problem.Incorrect behavior (everything from a crash to more subtle misbehavior)