078d407f40
This adds a new expectation test suite which mimics the modular compilation strategy used by dartdevc; the test code is fully compiled but the linked dependencies are only compiled as outlines. Change-Id: I4b8a68087997c025eb39aec414ee1706ddf7f847 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222762 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
24 lines
771 B
Plaintext
24 lines
771 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
//
|
|
// 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
|
|
}
|