Closed
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