1eda15854d
Experiments that have not be enabled by default should only be allowed in the current version of the sdk. Closes #45460 Change-Id: I159f390ac85fe37943920717ce11a4c817d5b4a9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193480 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
19 lines
544 B
Plaintext
19 lines
544 B
Plaintext
main = main::main;
|
|
library from "org-dartlang-test:///main.dart" as main {
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// org-dartlang-test:///main.dart:3:6: Error: Null safety features are disabled for this library.
|
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
|
// int? i;
|
|
// ^
|
|
// org-dartlang-test:///main.dart:1:1: Context: This is the annotation that opts out this library from null safety features.
|
|
// // @dart=2.9
|
|
// ^^^^^^^^^^^^
|
|
//
|
|
|
|
static method main() → dynamic {
|
|
dart.core::int? i;
|
|
}
|
|
}
|