[analyzer] Function.call
does not get the type Function
#54549
Labels
analyzer-spec
Issues with the analyzer's implementation of the language spec
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
soundness
Consider the following program:
The CFE reports a compile-time error on the initializing expression of the local variable
i
, but the analyzer accepts the declaration ofi
with no diagnostic messages (seen in DartPad based on Dart SDK 3.3.0-273.0.dev).When the insertion point in DartPad is at the declaration of
f
, the Documentation pane indicates that the type off
isInvalidType
(which is probably the reason why no further errors are reported, no matter howf
is used).However, the static type of
f
should have beenFunction
: https://github.com/dart-lang/language/blob/daf5cbd39e5b23bf7836dfa0926d0cfe4ae663b9/specification/dartLangSpec.tex#L14799.The text was updated successfully, but these errors were encountered: