[cfe] An explicitly instantiated instance method tearoff is not considered for extension method invocations #46719
Labels
legacy-area-front-end
Legacy: Use area-dart-model instead.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Uh oh!
There was an error while loading. Please reload this page.
Consider the following program:
This program is rejected by the CFE (as of ef8add0) with the following error messages:
However, the analysis should have considered
a.m<int>
anda.m<String>
as potential receivers of an extension method invocation and detected thatapplyAndPrint
is available and applicable, and accepted the program.PS: The error location has a funny length, too (it's 13 in both cases, even though
a.m<int>
anda.m<String>
do not have the same length).The text was updated successfully, but these errors were encountered: