36641368bb
This changes ast-to-text to mark legacy libraries instead of non-nullable-by-default libraries. TEST=existing Change-Id: Ib01147e4ef48c2c5b2ffc6b23547998344dfdf2e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307121 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
49 lines
2.0 KiB
Plaintext
49 lines
2.0 KiB
Plaintext
library;
|
|
//
|
|
// 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::•()
|
|
;
|
|
}
|