[cfe] Does not apply call insertion in pattern declaration #51738
Labels
legacy-area-front-end
Legacy: Use area-dart-model instead.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Consider the following program:
The CFE (SDK 3.0.0-322.0.dev) reports a compile-time error for this program:
However, I would expect this situation to give rise to a 'call insertion' coercion, that is, the initializing expression should have been transformed from
a
intoa.call
, based on the context typeFunction
.The text was updated successfully, but these errors were encountered: