c7765a8205
Updates the `ConstantVerifier` so we're checking the dot shorthand constructor invocation is a constant constructor call and that its arguments are constant expressions. Tweaked the constant error handling a little bit to handle dot shorthands. It's always a little funky, but needed to prevent duplicate errors. Added a few unit tests from the example in the bug. Fixes: https://github.com/dart-lang/sdk/issues/60963 Bug: https://github.com/dart-lang/sdk/issues/60893 Change-Id: I77b2dff4a274241b2c98b3e6cd34c620d08435a7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/436742 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Kallen Tu <kallentu@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>