Analyzer extension method resolution is incorrect for nullable types #40931
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
NNBD
Issues related to NNBD Release
The following program resolves an extension on
T?
to anint?
receiver, which should result inT
being resolved toint
, and hence the return type offoo
beingint
:The analyzer currently emits an incorrect error on this indicating that the return type of
foo
is nullable.cc @scheglov
The text was updated successfully, but these errors were encountered: