| 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 {} |