c175d48343
I've also added some runtime checks to `tests/language/patterns/object_pattern_inference_test.dart` to verify that the object patterns match when they should match and don't match when they shouldn't; this helps verify that not only has the front end inferred the correct type for the object patterns, but it has also stored the correct type in the kernel representation. Fixes #51795. Bug: https://github.com/dart-lang/sdk/issues/51795 Change-Id: I73ce43e440db50d9942deb4a1eb4ee68a5c23142 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290900 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Paul Berry <paulberry@google.com>