222947daa2
Tests the following: - Optional/named parameters for extension type primary constructors. - We should still produce an error when there's a body on a const constructor. - Inferring `Object?` as the representation type when the type isn't specified. - We can omit the type of an optional parameter with a default value, in which case, the type is inferred from the default value. Bug: https://github.com/dart-lang/sdk/issues/61687 Change-Id: Id10fb3f3a14cf683601f52b0b3182a10d0730927 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/465801 Commit-Queue: Kallen Tu <kallentu@google.com> Reviewed-by: Erik Ernst <eernst@google.com>