[3.0 alpha] Update CFE messages for Dart 3 sound null safety by-default

Fixes https://github.com/dart-lang/sdk/issues/50638

Change-Id: I511c5337099ae9576377ac8a82ef1bb78f6d34b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/273844
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
This commit is contained in:
Michael Thomsen 2022-12-09 16:55:03 +00:00 committed by Commit Queue
parent 3166622ca1
commit 9f2a622d79
73 changed files with 162 additions and 179 deletions

View file

@ -9382,7 +9382,7 @@ const Template<Message Function(String string2)>
templateNullSafetyDisabledInvalidLanguageVersion =
const Template<Message Function(String string2)>(
problemMessageTemplate:
r"""This requires the null safety language feature, which requires language version of #string2 or higher.""",
r"""This requires null safety, which requires language version of #string2 or higher.""",
withArguments: _withArgumentsNullSafetyDisabledInvalidLanguageVersion);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
@ -9397,7 +9397,7 @@ Message _withArgumentsNullSafetyDisabledInvalidLanguageVersion(String string2) {
if (string2.isEmpty) throw 'No string provided';
return new Message(codeNullSafetyDisabledInvalidLanguageVersion,
problemMessage:
"""This requires the null safety language feature, which requires language version of ${string2} or higher.""",
"""This requires null safety, which requires language version of ${string2} or higher.""",
arguments: {'string2': string2});
}
@ -9417,8 +9417,7 @@ const Template<
String
string)> templateNullSafetyOptOutExplicit = const Template<
Message Function(String string)>(
problemMessageTemplate:
r"""Null safety features are disabled for this library.""",
problemMessageTemplate: r"""Null safety is disabled for this library.""",
correctionMessageTemplate:
r"""Try removing the `@dart=` annotation or setting the language version to #string or higher.""",
withArguments: _withArgumentsNullSafetyOptOutExplicit);
@ -9433,7 +9432,7 @@ const Code<Message Function(String string)> codeNullSafetyOptOutExplicit =
Message _withArgumentsNullSafetyOptOutExplicit(String string) {
if (string.isEmpty) throw 'No string provided';
return new Message(codeNullSafetyOptOutExplicit,
problemMessage: """Null safety features are disabled for this library.""",
problemMessage: """Null safety is disabled for this library.""",
correctionMessage:
"""Try removing the `@dart=` annotation or setting the language version to ${string} or higher.""",
arguments: {'string': string});
@ -9445,8 +9444,7 @@ const Template<
String
string)> templateNullSafetyOptOutImplicit = const Template<
Message Function(String string)>(
problemMessageTemplate:
r"""Null safety features are disabled for this library.""",
problemMessageTemplate: r"""Null safety is disabled for this library.""",
correctionMessageTemplate:
r"""Try removing the package language version or setting the language version to #string or higher.""",
withArguments: _withArgumentsNullSafetyOptOutImplicit);
@ -9461,7 +9459,7 @@ const Code<Message Function(String string)> codeNullSafetyOptOutImplicit =
Message _withArgumentsNullSafetyOptOutImplicit(String string) {
if (string.isEmpty) throw 'No string provided';
return new Message(codeNullSafetyOptOutImplicit,
problemMessage: """Null safety features are disabled for this library.""",
problemMessage: """Null safety is disabled for this library.""",
correctionMessage:
"""Try removing the package language version or setting the language version to ${string} or higher.""",
arguments: {'string': string});
@ -10997,23 +10995,19 @@ const Code<Null> codeStrongModeNNBDButOptOut = messageStrongModeNNBDButOptOut;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageStrongModeNNBDButOptOut = const MessageCode(
"StrongModeNNBDButOptOut",
problemMessage:
r"""A library can't opt out of null safety by default, when using sound null safety.""");
problemMessage: r"""Library doesn't support null safety.""");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<
Message Function(
List<String>
_names)> templateStrongModeNNBDPackageOptOut = const Template<
Message Function(List<String> _names)>(
problemMessageTemplate:
r"""Cannot run with sound null safety, because the following dependencies
don't support null safety:
const Template<Message Function(List<String> _names)>
templateStrongModeNNBDPackageOptOut =
const Template<Message Function(List<String> _names)>(
problemMessageTemplate:
r"""The following dependencies don't support null safety:
#names
For solutions, see https://dart.dev/go/unsound-null-safety""",
withArguments: _withArgumentsStrongModeNNBDPackageOptOut);
withArguments: _withArgumentsStrongModeNNBDPackageOptOut);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(List<String> _names)>
@ -11027,9 +11021,7 @@ Message _withArgumentsStrongModeNNBDPackageOptOut(List<String> _names) {
if (_names.isEmpty) throw 'No names provided';
String names = itemizeNames(_names);
return new Message(codeStrongModeNNBDPackageOptOut,
problemMessage:
"""Cannot run with sound null safety, because the following dependencies
don't support null safety:
problemMessage: """The following dependencies don't support null safety:
${names}

View file

@ -306,7 +306,7 @@ ExperimentDisabled:
analyzerCode: ParserErrorCode.EXPERIMENT_NOT_ENABLED
NullSafetyDisabledInvalidLanguageVersion:
problemMessage: "This requires the null safety language feature, which requires language version of #string2 or higher."
problemMessage: "This requires null safety, which requires language version of #string2 or higher."
analyzerCode: ParserErrorCode.EXPERIMENT_NOT_ENABLED
ExperimentDisabledInvalidLanguageVersion:
@ -1591,12 +1591,11 @@ Unspecified:
problemMessage: "#string"
StrongModeNNBDButOptOut:
problemMessage: "A library can't opt out of null safety by default, when using sound null safety."
problemMessage: "Library doesn't support null safety."
StrongModeNNBDPackageOptOut:
problemMessage: |
Cannot run with sound null safety, because the following dependencies
don't support null safety:
The following dependencies don't support null safety:
#names
@ -5173,7 +5172,7 @@ FieldNonNullableNotInitializedByConstructorError:
problemMessage: "This constructor should initialize field '#name' because its type '#type' doesn't allow null."
NullSafetyOptOutExplicit:
problemMessage: "Null safety features are disabled for this library."
problemMessage: "Null safety is disabled for this library."
correctionMessage: "Try removing the `@dart=` annotation or setting the language version to #string or higher."
ExperimentOptOutExplicit:
@ -5181,7 +5180,7 @@ ExperimentOptOutExplicit:
correctionMessage: "Try removing the `@dart=` annotation or setting the language version to #string2 or higher."
NullSafetyOptOutImplicit:
problemMessage: "Null safety features are disabled for this library."
problemMessage: "Null safety is disabled for this library."
correctionMessage: "Try removing the package language version or setting the language version to #string or higher."
NullSafetyOptOutComment:

View file

@ -1,7 +1,7 @@
//
// Problems in component:
//
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart: Error: Library doesn't support null safety.
//
library /*isNonNullableByDefault*/;
import self as self;
@ -76,7 +76,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -1,7 +1,7 @@
//
// Problems in component:
//
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart: Error: Library doesn't support null safety.
//
library /*isNonNullableByDefault*/;
import self as self;
@ -76,7 +76,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -27,7 +27,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -27,7 +27,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/dart2js/mixin_from_opt_in/opt_out_lib.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -1,7 +1,7 @@
//
// Problems outside component:
//
// pkg/front_end/testcases/general/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -9,12 +9,12 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety is disabled for this library.
// Try removing the package language version or setting the language version to 2.10 or higher.
// int? versionedUnallowedPackage; // error
// ^
//
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -22,7 +22,7 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_AllowedPackage; // error
// ^
@ -58,7 +58,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_Library; // error
// ^
@ -75,7 +75,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_Library; // error
// ^
@ -92,7 +92,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_10_lib.dart:8:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_10_lib.dart:8:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_10_Library; // error
// ^

View file

@ -1,7 +1,7 @@
//
// Problems outside component:
//
// pkg/front_end/testcases/general/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -9,12 +9,12 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety is disabled for this library.
// Try removing the package language version or setting the language version to 2.10 or higher.
// int? versionedUnallowedPackage; // error
// ^
//
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -22,7 +22,7 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_AllowedPackage; // error
// ^
@ -58,7 +58,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_Library; // error
// ^
@ -75,7 +75,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_Library; // error
// ^
@ -92,7 +92,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_10_lib.dart:8:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_10_lib.dart:8:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_10_Library; // error
// ^

View file

@ -1,7 +1,7 @@
//
// Problems outside component:
//
// pkg/front_end/testcases/general/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -9,12 +9,12 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety is disabled for this library.
// Try removing the package language version or setting the language version to 2.10 or higher.
// int? versionedUnallowedPackage; // error
// ^
//
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -22,7 +22,7 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_AllowedPackage; // error
// ^
@ -59,7 +59,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_Library; // error
// ^
@ -76,7 +76,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_Library; // error
// ^
@ -93,7 +93,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_10_lib.dart:8:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_10_lib.dart:8:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_10_Library; // error
// ^

View file

@ -26,7 +26,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_Library; // error
// ^
@ -43,7 +43,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_Library; // error
// ^
@ -60,7 +60,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_10_lib.dart:8:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/experiment_release_version/versioned_2_10_lib.dart:8:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_10_Library; // error
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/null_safety_invalid_experiment.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/null_safety_invalid_experiment.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/null_safety_invalid_experiment.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/null_safety_invalid_experiment.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/null_safety_invalid_experiment.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/null_safety_invalid_experiment.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/null_safety_invalid_experiment.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/null_safety_invalid_experiment.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/null_safety_invalid_experiment_and_language_version.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/null_safety_invalid_experiment_and_language_version.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/null_safety_invalid_experiment_and_language_version.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/null_safety_invalid_experiment_and_language_version.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/null_safety_invalid_experiment_and_language_version.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/null_safety_invalid_experiment_and_language_version.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/null_safety_invalid_experiment_and_language_version.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/general/null_safety_invalid_experiment_and_language_version.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,8 +2,7 @@ main = main::main;
//
// Problems in component:
//
// Error: Cannot run with sound null safety, because the following dependencies
// don't support null safety:
// Error: The following dependencies don't support null safety:
//
// - package:foo
// - package:bar

View file

@ -2,8 +2,7 @@ main = main::main;
//
// Problems in component:
//
// Error: Cannot run with sound null safety, because the following dependencies
// don't support null safety:
// Error: The following dependencies don't support null safety:
//
// - package:foo
// - package:bar

View file

@ -2,8 +2,7 @@ main = main::main;
//
// Problems in component:
//
// Error: Cannot run with sound null safety, because the following dependencies
// don't support null safety:
// Error: The following dependencies don't support null safety:
//
// - package:bar
//

View file

@ -3,7 +3,7 @@ library from "org-dartlang-test:///bin/runMe.dart" as run {
//
// Problems in library:
//
// org-dartlang-test:///bin/runMe.dart:1:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// org-dartlang-test:///bin/runMe.dart:1:1: Error: Library doesn't support null safety.
// // @dart = 2.8
// ^^^^^^^^^^^^^^
//

View file

@ -3,7 +3,7 @@ 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.
// org-dartlang-test:///main.dart:3:6: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -86,7 +86,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/late_lowering/initializer_rewrite_from_opt_out_lib.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/late_lowering/initializer_rewrite_from_opt_out_lib.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.8
// ^^^^^^^^^^^^
//

View file

@ -86,7 +86,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/late_lowering/initializer_rewrite_from_opt_out_lib.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/late_lowering/initializer_rewrite_from_opt_out_lib.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.8
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/late_lowering/non_nullable_from_opt_out.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/late_lowering/non_nullable_from_opt_out.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.8
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/late_lowering/non_nullable_from_opt_out.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/late_lowering/non_nullable_from_opt_out.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.8
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue42607.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nnbd/issue42607.dart:5:1: Error: Library doesn't support null safety.
// // @dart = 2.6
// ^^^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue42607.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nnbd/issue42607.dart:5:1: Error: Library doesn't support null safety.
// // @dart = 2.6
// ^^^^^^^^^^^^^^
//

View file

@ -1,7 +1,7 @@
//
// Problems in component:
//
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: Library doesn't support null safety.
//
library /*isNonNullableByDefault*/;
import self as self;

View file

@ -1,7 +1,7 @@
//
// Problems in component:
//
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: Library doesn't support null safety.
//
library /*isNonNullableByDefault*/;
import self as self;

View file

@ -12,7 +12,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: Library doesn't support null safety.
// // @dart = 2.7
// ^^^^^^^^^^^^^^
//

View file

@ -12,7 +12,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: Library doesn't support null safety.
// // @dart = 2.7
// ^^^^^^^^^^^^^^
//

View file

@ -1,8 +1,7 @@
//
// Problems in component:
//
// Error: Cannot run with sound null safety, because the following dependencies
// don't support null safety:
// Error: The following dependencies don't support null safety:
//
// - package:opt_in_package/opt_out_lib.dart
// - package:opt_out_package

View file

@ -1,8 +1,7 @@
//
// Problems in component:
//
// Error: Cannot run with sound null safety, because the following dependencies
// don't support null safety:
// Error: The following dependencies don't support null safety:
//
// - package:opt_in_package/opt_out_lib.dart
// - package:opt_out_package

View file

@ -1,15 +1,14 @@
//
// Problems outside component:
//
// pkg/front_end/testcases/nnbd/strong_package_not_ok_from_source/opt_in_package/lib/opt_out_lib.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nnbd/strong_package_not_ok_from_source/opt_in_package/lib/opt_out_lib.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.7
// ^^^^^^^^^^^^
//
//
// Problems in component:
//
// Error: Cannot run with sound null safety, because the following dependencies
// don't support null safety:
// Error: The following dependencies don't support null safety:
//
// - package:opt_out_package
//

View file

@ -1,8 +1,7 @@
//
// Problems in component:
//
// Error: Cannot run with sound null safety, because the following dependencies
// don't support null safety:
// Error: The following dependencies don't support null safety:
//
// - package:opt_out_package
//

View file

@ -1,7 +1,7 @@
//
// Problems outside component:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -9,12 +9,12 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety is disabled for this library.
// Try removing the package language version or setting the language version to 2.10 or higher.
// int? versionedUnallowedPackage; // error
// ^
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -22,7 +22,7 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_AllowedPackage; // error
// ^
@ -58,7 +58,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_Library; // error
// ^
@ -75,7 +75,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_Library; // error
// ^

View file

@ -1,7 +1,7 @@
//
// Problems outside component:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -9,12 +9,12 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety is disabled for this library.
// Try removing the package language version or setting the language version to 2.10 or higher.
// int? versionedUnallowedPackage; // error
// ^
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -22,7 +22,7 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_AllowedPackage; // error
// ^
@ -58,7 +58,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_Library; // error
// ^
@ -75,7 +75,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_Library; // error
// ^

View file

@ -1,7 +1,7 @@
//
// Problems outside component:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -9,12 +9,12 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/unversioned_lib.dart:5:4: Error: Null safety is disabled for this library.
// Try removing the package language version or setting the language version to 2.10 or higher.
// int? versionedUnallowedPackage; // error
// ^
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_AllowedPackage; // error
// ^
@ -22,7 +22,7 @@
// // @dart=2.8
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/not_allowed_package/lib/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_AllowedPackage; // error
// ^
@ -59,7 +59,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_Library; // error
// ^
@ -76,7 +76,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_Library; // error
// ^

View file

@ -26,7 +26,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_8_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_8_Library; // error
// ^
@ -43,7 +43,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/experiment_release_version/versioned_2_9_lib.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
// int? versioned_2_9_Library; // error
// ^

View file

@ -11,7 +11,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/inheritance_from_opt_in.dart:21:52: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/inheritance_from_opt_in.dart:21:52: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// class LegacyClass4c implements GenericInterface<num?> {}
// ^

View file

@ -11,7 +11,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/inheritance_from_opt_in.dart:21:52: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/inheritance_from_opt_in.dart:21:52: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// class LegacyClass4c implements GenericInterface<num?> {}
// ^

View file

@ -11,7 +11,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/inheritance_from_opt_in.dart:21:52: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/inheritance_from_opt_in.dart:21:52: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// class LegacyClass4c implements GenericInterface<num?> {}
// ^

View file

@ -102,7 +102,7 @@ library;
// c?..f!;
// ^
//
// pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:10:8: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:10:8: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// c?..f!;
// ^

View file

@ -102,7 +102,7 @@ library;
// c?..f!;
// ^
//
// pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:10:8: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:10:8: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// c?..f!;
// ^

View file

@ -102,7 +102,7 @@ library;
// c?..f!;
// ^
//
// pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:10:8: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:10:8: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// c?..f!;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/null_safety_invalid_language_version.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/null_safety_invalid_language_version.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/null_safety_invalid_language_version.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/null_safety_invalid_language_version.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/null_safety_invalid_language_version.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/null_safety_invalid_language_version.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/null_safety_invalid_language_version.dart:7:4: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/null_safety_invalid_language_version.dart:7:4: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// int? i;
// ^

View file

@ -43,7 +43,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:18:25: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:18:25: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// class B extends A<String?> {}
// ^
@ -51,7 +51,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:20:28: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:20:28: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// typedef F = void Function()?;
// ^
@ -59,7 +59,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:22:12: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:22:12: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// List<String?> l = [];
// ^
@ -67,7 +67,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:23:7: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:23:7: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// String? s = null;
// ^
@ -75,7 +75,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:28:21: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:28:21: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// void method(void f()?, {int a}) {}
// ^
@ -83,7 +83,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:24:10: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:24:10: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// var t = s!;
// ^
@ -91,7 +91,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:32:14: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:32:14: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// List<String?> l = null;
// ^
@ -99,7 +99,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:33:9: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:33:9: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// String? s = null;
// ^
@ -107,7 +107,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:34:12: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:34:12: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// var t = s!;
// ^
@ -125,7 +125,7 @@ library;
// c?..f;
// ^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:37:5: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:37:5: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// c?[0];
// ^

View file

@ -43,7 +43,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:18:25: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:18:25: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// class B extends A<String?> {}
// ^
@ -51,7 +51,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:20:28: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:20:28: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// typedef F = void Function()?;
// ^
@ -59,7 +59,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:22:12: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:22:12: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// List<String?> l = [];
// ^
@ -67,7 +67,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:23:7: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:23:7: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// String? s = null;
// ^
@ -75,7 +75,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:28:21: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:28:21: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// void method(void f()?, {int a}) {}
// ^
@ -83,7 +83,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:24:10: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:24:10: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// var t = s!;
// ^
@ -91,7 +91,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:32:14: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:32:14: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// List<String?> l = null;
// ^
@ -99,7 +99,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:33:9: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:33:9: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// String? s = null;
// ^
@ -107,7 +107,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:34:12: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:34:12: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// var t = s!;
// ^
@ -125,7 +125,7 @@ library;
// c?..f;
// ^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:37:5: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:37:5: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// c?[0];
// ^

View file

@ -36,7 +36,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:18:25: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:18:25: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// class B extends A<String?> {}
// ^
@ -44,7 +44,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:20:28: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:20:28: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// typedef F = void Function()?;
// ^
@ -52,7 +52,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:22:12: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:22:12: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// List<String?> l = [];
// ^
@ -60,7 +60,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:23:7: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:23:7: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// String? s = null;
// ^
@ -68,7 +68,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:28:21: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:28:21: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// void method(void f()?, {int a}) {}
// ^
@ -76,7 +76,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:24:10: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:24:10: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// var t = s!;
// ^

View file

@ -43,7 +43,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:18:25: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:18:25: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// class B extends A<String?> {}
// ^
@ -51,7 +51,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:20:28: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:20:28: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// typedef F = void Function()?;
// ^
@ -59,7 +59,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:22:12: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:22:12: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// List<String?> l = [];
// ^
@ -67,7 +67,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:23:7: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:23:7: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// String? s = null;
// ^
@ -75,7 +75,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:28:21: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:28:21: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// void method(void f()?, {int a}) {}
// ^
@ -83,7 +83,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:24:10: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:24:10: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// var t = s!;
// ^
@ -91,7 +91,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:32:14: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:32:14: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// List<String?> l = null;
// ^
@ -99,7 +99,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:33:9: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:33:9: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// String? s = null;
// ^
@ -107,7 +107,7 @@ library;
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:34:12: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:34:12: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// var t = s!;
// ^
@ -125,7 +125,7 @@ library;
// c?..f;
// ^
//
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:37:5: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:37:5: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// c?[0];
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/none/tearoff_opt_out.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/none/tearoff_opt_out.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/none/tearoff_opt_out.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/none/tearoff_opt_out.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -40,7 +40,7 @@ library opted_out_lib;
//
// Problems in library:
//
// pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.6
// ^^^^^^^^^^^^
//

View file

@ -40,7 +40,7 @@ library opted_out_lib;
//
// Problems in library:
//
// pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.6
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nonfunction_type_aliases/issue_43084/issue_43084.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nonfunction_type_aliases/issue_43084/issue_43084.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nonfunction_type_aliases/issue_43084/issue_43084.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/nonfunction_type_aliases/issue_43084/issue_43084.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/records/record_literal_unsupported.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/records/record_literal_unsupported.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/records/record_literal_unsupported.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/records/record_literal_unsupported.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/records/record_type_unsupported.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/records/record_type_unsupported.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/records/record_type_unsupported.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/records/record_type_unsupported.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/regress/issue_31180.dart:8:15: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/regress/issue_31180.dart:8:15: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// return null?[1];
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/regress/issue_31180.dart:8:15: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/regress/issue_31180.dart:8:15: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// return null?[1];
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/regress/issue_31180.dart:8:15: Error: Null safety features are disabled for this library.
// pkg/front_end/testcases/regress/issue_31180.dart:8:15: Error: Null safety is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
// return null?[1];
// ^

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/static_field_lowering/opt_out.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/static_field_lowering/opt_out.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.8
// ^^^^^^^^^^^^
//

View file

@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/static_field_lowering/opt_out.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
// pkg/front_end/testcases/static_field_lowering/opt_out.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.8
// ^^^^^^^^^^^^
//

View file

@ -37,8 +37,7 @@ main() async {
print('stdout: ${result.stdout}');
print('stderr: ${result.stderr}');
Expect.equals(kCompilationErrorExitCode, result.exitCode);
Expect.stringContainsInOrder(result.stderr, [
"Error: A library can't opt out of null safety by default, when using sound null safety."
]);
Expect.stringContainsInOrder(
result.stderr, ["Error: Library doesn't support null safety."]);
});
}

View file

@ -12,5 +12,5 @@ void main() {
int? x;
// ^
// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED
// [cfe] Null safety features are disabled for this library.
// [cfe] Null safety is disabled for this library.
}

View file

@ -9,6 +9,6 @@ main() {
// ^
// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED
// ^
// [cfe] Null safety features are disabled for this library.
// [cfe] Null safety is disabled for this library.
// [cfe] The operator '[]' isn't defined for the class 'Null'.
}