fc1b1ecc71
Change-Id: Idbcc965a27e9ffeedf5e0a1068b019de4193070f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127745 Commit-Queue: Bob Nystrom <rnystrom@google.com> Reviewed-by: Alexander Thomas <athom@google.com>
87 lines
2.5 KiB
Dart
87 lines
2.5 KiB
Dart
// Copyright (c) 2013, 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.
|
|
|
|
class M {}
|
|
class M0 extends Object with M0 { }
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE_WITH
|
|
// [cfe] 'M0' is a supertype of itself.
|
|
// ^
|
|
// [cfe] 'Object with M0' is a supertype of itself.
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.MIXIN_INHERITS_FROM_NOT_OBJECT
|
|
class M1 = Object with M1;
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE_WITH
|
|
// [cfe] 'M1' is a supertype of itself.
|
|
|
|
class M2 = Object with M3;
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE
|
|
// [cfe] 'M2' is a supertype of itself.
|
|
class M3 = Object with M2;
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE
|
|
// [cfe] 'M3' is a supertype of itself.
|
|
|
|
class M4 = Object with M5;
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE
|
|
// [cfe] 'M4' is a supertype of itself.
|
|
class M5 = Object with M6;
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE
|
|
// [cfe] 'M5' is a supertype of itself.
|
|
class M6 = Object with M4;
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE
|
|
// [cfe] 'M6' is a supertype of itself.
|
|
|
|
class M7 extends Object with M8 { }
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE
|
|
// [cfe] 'M7' is a supertype of itself.
|
|
// ^
|
|
// [cfe] 'Object with M8' is a supertype of itself.
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.MIXIN_INHERITS_FROM_NOT_OBJECT
|
|
class M8 extends Object with M7 { }
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE
|
|
// [cfe] 'M8' is a supertype of itself.
|
|
// ^
|
|
// [cfe] 'Object with M7' is a supertype of itself.
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.MIXIN_INHERITS_FROM_NOT_OBJECT
|
|
|
|
class M9 = Object with M91;
|
|
// ^
|
|
// [cfe] 'M9' is a supertype of itself.
|
|
class M91 = Object with M92;
|
|
// ^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE
|
|
// [cfe] 'M91' is a supertype of itself.
|
|
class M92 = Object with M91;
|
|
// ^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.RECURSIVE_INTERFACE_INHERITANCE
|
|
// [cfe] 'M92' is a supertype of itself.
|
|
|
|
main() {
|
|
new M0();
|
|
|
|
new M1();
|
|
|
|
new M2();
|
|
new M3();
|
|
|
|
new M4();
|
|
new M5();
|
|
new M6();
|
|
|
|
new M7();
|
|
new M8();
|
|
|
|
new M9();
|
|
}
|