0936bceaa0
Remove/change some frontend tests to make for easier removal of these invalid mixins in https://dart-review.googlesource.com/c/sdk/+/290614. Change-Id: I50325b8275704eb2542c5871bb6326356bd9b020 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291053 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Kallen Tu <kallentu@google.com>
49 lines
2.0 KiB
Plaintext
49 lines
2.0 KiB
Plaintext
library /*isNonNullableByDefault*/;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/general/interface_class_declaration.dart:7:1: Error: The 'class-modifiers' language feature is disabled for this library.
|
|
// Try removing the `@dart=` annotation or setting the language version to 3.0 or higher.
|
|
// interface class A {}
|
|
// ^^^^^^^^^
|
|
// pkg/front_end/testcases/general/interface_class_declaration.dart:5:1: Context: This is the annotation that opts out this library from the 'class-modifiers' language feature.
|
|
// // @dart=2.19
|
|
// ^^^^^^^^^^^^^
|
|
//
|
|
// pkg/front_end/testcases/general/interface_class_declaration.dart:9:10: Error: The 'class-modifiers' language feature is disabled for this library.
|
|
// Try removing the `@dart=` annotation or setting the language version to 3.0 or higher.
|
|
// abstract interface class B {}
|
|
// ^^^^^^^^^
|
|
// pkg/front_end/testcases/general/interface_class_declaration.dart:5:1: Context: This is the annotation that opts out this library from the 'class-modifiers' language feature.
|
|
// // @dart=2.19
|
|
// ^^^^^^^^^^^^^
|
|
//
|
|
// pkg/front_end/testcases/general/interface_class_declaration.dart:12:1: Error: The 'class-modifiers' language feature is disabled for this library.
|
|
// Try removing the `@dart=` annotation or setting the language version to 3.0 or higher.
|
|
// interface class C = Object with M;
|
|
// ^^^^^^^^^
|
|
// pkg/front_end/testcases/general/interface_class_declaration.dart:5:1: Context: This is the annotation that opts out this library from the 'class-modifiers' language feature.
|
|
// // @dart=2.19
|
|
// ^^^^^^^^^^^^^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class A extends core::Object {
|
|
synthetic constructor •() → self::A
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
abstract class B extends core::Object {
|
|
synthetic constructor •() → self::B
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
abstract class M extends core::Object /*isMixinDeclaration*/ {
|
|
}
|
|
class C = core::Object with self::M /*hasConstConstructor*/ {
|
|
const synthetic constructor •() → self::C
|
|
: super core::Object::•()
|
|
;
|
|
}
|