Files
sdk/pkg/front_end/testcases/const_functions/non_function_invocation.dart.strong.expect
T
Johnni Winther 36641368bb [cfe] Treat NonNullableByDefault as default in ast-to-text
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>
2023-06-08 06:28:50 +00:00

24 lines
744 B
Plaintext

library;
//
// Problems in library:
//
// pkg/front_end/testcases/const_functions/non_function_invocation.dart:6:20: Error: Constant evaluation error:
// const dynamic b = a();
// ^
// pkg/front_end/testcases/const_functions/non_function_invocation.dart:6:20: Context: Null value during constant evaluation.
// const dynamic b = a();
// ^
// pkg/front_end/testcases/const_functions/non_function_invocation.dart:6:15: Context: While analyzing:
// const dynamic b = a();
// ^
//
import self as self;
static const field dynamic a = #C1;
static const field dynamic b = invalid-expression "Null value during constant evaluation.";
static method main() → dynamic {}
constants {
#C1 = null
}