653502e4cb
Default types are used in the exhaustiveness computation but were not computed for local functions, leading to a crash during constant evaluation. This adds computation of default types to FunctionDeclaration and FunctionExpression. Closes #54388 Closes #60264 Change-Id: I95eb2ae5b42e4fb5ab77088c915fe6088a1d4060 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/427702 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>