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>
34 lines
911 B
YAML
34 lines
911 B
YAML
# Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE.md file.
|
|
|
|
# Compile a library with an explicit language version that prohibits use of
|
|
# null safety syntax. Remove the explicit language version annotation in
|
|
# the update to check the version isn't copied over from the original
|
|
# library.
|
|
|
|
type: newworld
|
|
worlds:
|
|
- entry: main.dart
|
|
experiments: non-nullable
|
|
errors: true
|
|
warnings: false
|
|
sources:
|
|
main.dart: |
|
|
// @dart=2.9
|
|
main() {
|
|
int? i;
|
|
}
|
|
expectedLibraryCount: 1
|
|
- entry: main.dart
|
|
experiments: non-nullable
|
|
invalidate:
|
|
- main.dart
|
|
errors: false
|
|
warnings: false
|
|
sources:
|
|
main.dart: |
|
|
main() {
|
|
int? i;
|
|
}
|
|
expectedLibraryCount: 1 |