False positive with top_level_function_literal_block #41571
Labels
analyzer-spec
Issues with the analyzer's implementation of the language spec
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Consider the following code:
The line
otherProvider = Provider(...0
triggers atop_level_function_literal_block
(The type of the function literal can't be inferred because the literal has a block as its body) when the inference worked.Since the inference worked, this shouldn't trigger the warning.
The text was updated successfully, but these errors were encountered: