Bad interaction between prefer_int_literals
and Enhanced type inference for generic invocations with function literals
#58856
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
linter-false-positive
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Describe the issue
This issue is related to #58490
At the moment, there's a bad interaction between prefer_int_literals and Enhanced type inference for generic invocations with function literals introduced in 2.18.
The following snippet of code will cause the lint to emit a warning:
However, the code snippet is no longer valid once the suggested fix is applied.
The text was updated successfully, but these errors were encountered: