pre-emptively fix some tests for class modifiers flag flip

Change-Id: Ie7bbea5faa07dcc41f551268bd730bf0416e1fef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286280
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Auto-Submit: Jake Macdonald <jakemac@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
This commit is contained in:
Jake Macdonald 2023-03-01 20:11:25 +00:00 committed by Commit Queue
parent 07c5db4d53
commit bc3a4a660f
31 changed files with 43 additions and 63 deletions

View file

@ -2,6 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
/*library: nnbd=true*/
/*class: Class:Class,Object*/

View file

@ -2,6 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
library lib1;
import "mixin_shared.dart";

View file

@ -2,6 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
library shared;
class SharedMixin {

View file

@ -4,11 +4,11 @@
library mixin_lib_extends_field_lib;
class M1 {
mixin M1 {
final bar = "M1-bar";
}
class M2 {
mixin M2 {
var baz = "M2-$_baz";
}

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
library mixin_lib_extends_field_test;
import 'package:expect/expect.dart';

View file

@ -4,7 +4,7 @@
library mixin_lib_extends_method_lib;
class M1 {
mixin M1 {
bar() => "M1-bar";
clo(s) {
@ -13,7 +13,7 @@ class M1 {
}
}
class M2 {
mixin M2 {
// Make sure mixed-in method has access to library-private names.
bar() => _M2_bar();
baz() => _M2_baz;

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
library mixin_lib_extends_method_test;
import "package:expect/expect.dart";

View file

@ -6,6 +6,6 @@ library mixin_prefix_lib;
import "dart:convert";
class MixinClass {
mixin MixinClass {
String bar() => json.encode({'a': 1});
}

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// Requirements=nnbd-weak
// Verifies that a member declared in a null-safe class which overrides

View file

@ -2,6 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// This library sets up various null-safe classes which have as a
// superinterface one of `A<int>`,`A<int?>`, `M<int>` or `M<int?>`.
// Each class has a getter, setter, and method; each is concrete; and

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// Requirements=nnbd-weak
// Verify that conflicting implemented interfaces are resolved at a legacy

View file

@ -2,6 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// This library declares two null-safe classes `B` and `Bq` with members using
// non-nullable types respectively nullable types. The member signatures are
// incompatible (there is no correct override relationship between them in

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// Requirements=nnbd-weak
// Verify that conflicting member signatures are resolved at a legacy

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// Requirements=nnbd-weak
// Verify that member signatures are computed correctly for null-safe

View file

@ -2,6 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// This library declares two null-safe classes `B` and `Bq` with members
// using non-nullable types respectively nullable types. Subtypes having
// either `B` or `Bq` as a superinterface are declared in the library

View file

@ -1,8 +1,6 @@
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// @dart=2.19
import 'dart:async';

View file

@ -1,8 +1,6 @@
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// @dart=2.19
// Introduce an aliased type.

View file

@ -20,6 +20,6 @@ library inline_super_field_lib;
var i = 0;
class M1 {
mixin M1 {
final bar = ++i;
}

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// Test that source maps use the correct compilation unit when super class
// fields from another compilation unit are inlined.

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// Dart test for testing access to private fields on mixins.
library private_mixin2;

View file

@ -2,6 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// Dart test for testing access to private fields on mixins.
library private_mixin2_other;

View file

@ -3,7 +3,7 @@
import 'regress20394_lib.dart';
class M {}
mixin M {}
class C extends Super with M {

View file

@ -1,6 +1,6 @@
import 'regress20394_lib.dart';
class M {}
mixin M {}
class C extends Super with M {
C() : super._private(42);

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
import 'regress25246_2.dart';
class ConcreteClass extends Object with MixIn {}

View file

@ -4,7 +4,7 @@
import 'regress25246_3.dart';
class MixIn {
mixin MixIn {
var test3 = new Test3(() {});
void test() {
test3.test();

View file

@ -5,6 +5,6 @@
// Regression test case for http://dartbug.com/9602
library issue9602_other;
class M {
mixin M {
var _field;
}

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
// Regression test case for http://dartbug.com/9602
library issue9602;

View file

@ -40,7 +40,7 @@ abstract class Interface<I> {
static _interfaceStaticMethod() => null;
}
class Mixin<M> {
mixin Mixin<M> {
operator *(x) => null;
var mixinInstanceVariable;

View file

@ -6,9 +6,9 @@ library lib1;
class _S {}
class _M {}
mixin _M {}
class _M2 {}
mixin _M2 {}
class MA extends _S with _M {}

View file

@ -6,9 +6,9 @@ library lib2;
class _S {}
class _M {}
mixin _M {}
class _M2 {}
mixin _M2 {}
class MA extends _S with _M {}

View file

@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// TODO(51557): Decide if the mixins being applied in this test should be
// "mixin", "mixin class" or the test should be left at 2.19.
// @dart=2.19
library test.repeated_private_anon_mixin_app;
// Regression test for symbol mangling.