mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:01:20 +00:00
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>
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/records/type_record_constructor_forbidden.dart:8:11: Error: The class 'Record' is abstract and can't be instantiated.
|
|
// foo1() => Record(); // Error.
|
|
// ^^^^^^
|
|
//
|
|
// pkg/front_end/testcases/records/type_record_constructor_forbidden.dart:9:11: Error: The class 'Record' is abstract and can't be instantiated.
|
|
// foo2() => R(); // Error.
|
|
// ^^^^^^
|
|
//
|
|
// pkg/front_end/testcases/records/type_record_constructor_forbidden.dart:10:11: Error: The class 'Record' is abstract and can't be instantiated.
|
|
// foo3() => RR(); // Error.
|
|
// ^^^^^^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
typedef R = core::Record;
|
|
typedef RR = core::Record;
|
|
static method foo1() → dynamic
|
|
return invalid-expression "The class 'Record' is abstract and can't be instantiated.";
|
|
static method foo2() → dynamic
|
|
return invalid-expression "The class 'Record' is abstract and can't be instantiated.";
|
|
static method foo3() → dynamic
|
|
return invalid-expression "The class 'Record' is abstract and can't be instantiated.";
|
|
static method main() → dynamic {}
|