230ef696eb
Remove the special case for `class C = Object with M;` and fall into the same code path that would be used for `class C2 = BaseClass with M;` This introduces one new class to the hierarchy but that class contains the members synthesized on the class. This ensures they do not get lost during the mixin application at runtime. It appears likely that this has been broken for some time and generating incorrect code when methods require covariant checks. Fixes: https://github.com/dart-lang/sdk/issues/51768 Change-Id: If499b7abd1f8877b9f420ce74b790555c8d258f2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290402 Reviewed-by: Mark Zhou <markzipan@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>