Strange inference with a ternary operator and Lists #24202
Labels
closed-duplicate
Closed in favor of an existing report
legacy-area-analyzer
Use area-devexp instead.
On the following code:
The analyzer reports the following warning:
This seems wrong. The first branch of the ternary operator is a
List
, which is assignable toIterable
.Note that if
<String>
is removed from the type annotation foriter
, or if<String>
is added to the list literal, the warning goes away.I'm using 1.13.0-edge.9e18a7519d429f87c70bb3b8871c6cc666ee3fa6.
The text was updated successfully, but these errors were encountered: