Files
sdk/pkg/front_end/testcases/agnostic/as.dart.strong.expect
T
Jens Johansen dc54ec7d4e [CFE] Put constant evaluator errors on library, not component
Change-Id: I67373522cbccf199a3bc39ec577f66ac68f681aa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/165803
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-10-05 10:30:05 +00:00

31 lines
1.2 KiB
Plaintext

library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/agnostic/as.dart:5:20: Error: Constant evaluation error:
// const a = <Null>[] as List<int>;
// ^
// pkg/front_end/testcases/agnostic/as.dart:5:20: Context: Constant value is not strong/weak mode agnostic.
// const a = <Null>[] as List<int>;
// ^
// pkg/front_end/testcases/agnostic/as.dart:5:7: Context: While analyzing:
// const a = <Null>[] as List<int>;
// ^
//
// pkg/front_end/testcases/agnostic/as.dart:6:20: Error: Constant evaluation error:
// const b = <int?>[] as List<int>;
// ^
// pkg/front_end/testcases/agnostic/as.dart:6:20: Context: Constant value is not strong/weak mode agnostic.
// const b = <int?>[] as List<int>;
// ^
// pkg/front_end/testcases/agnostic/as.dart:6:7: Context: While analyzing:
// const b = <int?>[] as List<int>;
// ^
//
import self as self;
import "dart:core" as core;
static const field core::List<core::int> a = invalid-expression "Constant value is not strong/weak mode agnostic.";
static const field core::List<core::int> b = invalid-expression "Constant value is not strong/weak mode agnostic.";
static method main() → void {}