-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
dart-model-analyzer-specIssues with the analyzer's implementation of the language specIssues with the analyzer's implementation of the language speclegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Milestone
Description
Consider the following code
void h() sync* { }
main() {
h();
}Alanyzer in nostrong mode produces warning
warning - Functions marked 'sync*' must have a return type assignable to 'Iterable'
I'm expecting an error in a strong mode but there is, surprisingly, no issues!
The same is true for async* functions
void h() async* { }
main() {
h();
} warning - Functions marked 'async*' must have a return type assignable to 'Stream'
in a nostrong mode and no issues in a strong one
Tested on dartanalyzer version 2.0.0-dev.26.0 on Windows
Metadata
Metadata
Assignees
Labels
dart-model-analyzer-specIssues with the analyzer's implementation of the language specIssues with the analyzer's implementation of the language speclegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)