As mentioned in https://github.com/dart-lang/sdk/issues/51585, the context type schema should be the shape, not the type in the record patterns. Affected test: https://github.com/dart-lang/co19/blob/7b4f3e723211011878e185db6fa57fbafabd6bb7/LanguageFeatures/Patterns/type_inference_A26_t01.dart#L34-L37