Argument type mismatch hint is incomplete #20497
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Given the following code:
class F {
void call(int x, String y) {
}
}
main() {
var function = null as F;
function('', [2]);
function.call('', [2]);
}
Analyzer will hint (HintCode.ARGUMENT_TYPE_NOT_ASSIGNABLE) on the line with ".call(" that the argument types do not correspond to the parameter types, but will not hint on the line above. It should hint on both lines.
The text was updated successfully, but these errors were encountered: