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>
21 lines
685 B
Plaintext
21 lines
685 B
Plaintext
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/general/constants/function_invocation.dart:7:20: Error: Method invocation is not a constant expression.
|
|
// const invocation = tearOff();
|
|
// ^^^^^^^
|
|
//
|
|
import self as self;
|
|
|
|
static const field () → dynamic tearOff = #C1;
|
|
static const field invalid-type invocation = invalid-expression "pkg/front_end/testcases/general/constants/function_invocation.dart:7:20: Error: Method invocation is not a constant expression.
|
|
const invocation = tearOff();
|
|
^^^^^^^";
|
|
static method method() → dynamic {}
|
|
static method main() → dynamic {}
|
|
|
|
constants {
|
|
#C1 = static-tearoff self::method
|
|
}
|