[flip-modifiers] fix some vm tests to make mixed in classes mixins

These tests don't have a language version and so will get opted in when the flag is flipped, and need to be compatible.

TEST=only test changes

Change-Id: Idf49123e25c876102e6719ed3de8b475e80c8975
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286542
Reviewed-by: Alexander Aprelev <aam@google.com>
Auto-Submit: Jake Macdonald <jakemac@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
This commit is contained in:
Jake Macdonald 2023-03-02 21:29:56 +00:00 committed by Commit Queue
parent 3643e771c4
commit a22e003ee1
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ part of regress_39168;
class B {}
abstract class C {}
mixin C {}
// Mixin application B with C is de-duplicated with mixin application
// in regress_39168_part1.dart.

View file

@ -930,7 +930,7 @@ TEST_CASE(IsolateReload_TypeIdentityParameter) {
TEST_CASE(IsolateReload_MixinChanged) {
const char* kScript =
"class Mixin1 {\n"
"mixin Mixin1 {\n"
" var field = 'mixin1';\n"
" func() => 'mixin1';\n"
"}\n"
@ -946,7 +946,7 @@ TEST_CASE(IsolateReload_MixinChanged) {
EXPECT_STREQ("saved:field=mixin1,func=mixin1", SimpleInvokeStr(lib, "main"));
const char* kReloadScript =
"class Mixin2 {\n"
"mixin Mixin2 {\n"
" var field = 'mixin2';\n"
" func() => 'mixin2';\n"
"}\n"
@ -1232,7 +1232,7 @@ TEST_CASE(IsolateReload_SmiFastPathStubs) {
// mixins when we reload.
TEST_CASE(IsolateReload_ImportedMixinFunction) {
const char* kImportScript =
"class ImportedMixin {\n"
"mixin ImportedMixin {\n"
" mixinFunc() => 'mixin';\n"
"}\n";
TestCase::AddTestLib("test:lib1", kImportScript);