e54fdb19a1
The parser used the global features and not the library features to determine whether pattern syntax should be expected. Closes #51625 Closes #51626 Change-Id: I3adc05468c0f9d2c5b919dc7fa12a5de4dcbbc7b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/288504 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>