Incorrect downwards type inference in CFE #43536
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
customer-google3
NNBD
Issues related to NNBD Release
OK, I believe CFE is doing the wrong thing here, but it's in a corner of type inference I don't understand well, so I could be wrong. For what it's worth, analyzer does not report an error on the same code, so one of our tools is wrong:
In CFE, this produces:
It looks like CFE is inferring
List<Never>
from the downwards inference (I'm guessing by taking the greatest/least closure to eliminate the inferredE extends T
and only after that is done looking at the parameter's type.@leafpetersen @matanlurey
The text was updated successfully, but these errors were encountered: