mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:18:49 +00:00
[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:
parent
3166622ca1
commit
9f2a622d79
|
@ -9382,7 +9382,7 @@ const Template<Message Function(String string2)>
|
||||||
templateNullSafetyDisabledInvalidLanguageVersion =
|
templateNullSafetyDisabledInvalidLanguageVersion =
|
||||||
const Template<Message Function(String string2)>(
|
const Template<Message Function(String string2)>(
|
||||||
problemMessageTemplate:
|
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);
|
withArguments: _withArgumentsNullSafetyDisabledInvalidLanguageVersion);
|
||||||
|
|
||||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
// 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';
|
if (string2.isEmpty) throw 'No string provided';
|
||||||
return new Message(codeNullSafetyDisabledInvalidLanguageVersion,
|
return new Message(codeNullSafetyDisabledInvalidLanguageVersion,
|
||||||
problemMessage:
|
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});
|
arguments: {'string2': string2});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9417,8 +9417,7 @@ const Template<
|
||||||
String
|
String
|
||||||
string)> templateNullSafetyOptOutExplicit = const Template<
|
string)> templateNullSafetyOptOutExplicit = const Template<
|
||||||
Message Function(String string)>(
|
Message Function(String string)>(
|
||||||
problemMessageTemplate:
|
problemMessageTemplate: r"""Null safety is disabled for this library.""",
|
||||||
r"""Null safety features are disabled for this library.""",
|
|
||||||
correctionMessageTemplate:
|
correctionMessageTemplate:
|
||||||
r"""Try removing the `@dart=` annotation or setting the language version to #string or higher.""",
|
r"""Try removing the `@dart=` annotation or setting the language version to #string or higher.""",
|
||||||
withArguments: _withArgumentsNullSafetyOptOutExplicit);
|
withArguments: _withArgumentsNullSafetyOptOutExplicit);
|
||||||
|
@ -9433,7 +9432,7 @@ const Code<Message Function(String string)> codeNullSafetyOptOutExplicit =
|
||||||
Message _withArgumentsNullSafetyOptOutExplicit(String string) {
|
Message _withArgumentsNullSafetyOptOutExplicit(String string) {
|
||||||
if (string.isEmpty) throw 'No string provided';
|
if (string.isEmpty) throw 'No string provided';
|
||||||
return new Message(codeNullSafetyOptOutExplicit,
|
return new Message(codeNullSafetyOptOutExplicit,
|
||||||
problemMessage: """Null safety features are disabled for this library.""",
|
problemMessage: """Null safety is disabled for this library.""",
|
||||||
correctionMessage:
|
correctionMessage:
|
||||||
"""Try removing the `@dart=` annotation or setting the language version to ${string} or higher.""",
|
"""Try removing the `@dart=` annotation or setting the language version to ${string} or higher.""",
|
||||||
arguments: {'string': string});
|
arguments: {'string': string});
|
||||||
|
@ -9445,8 +9444,7 @@ const Template<
|
||||||
String
|
String
|
||||||
string)> templateNullSafetyOptOutImplicit = const Template<
|
string)> templateNullSafetyOptOutImplicit = const Template<
|
||||||
Message Function(String string)>(
|
Message Function(String string)>(
|
||||||
problemMessageTemplate:
|
problemMessageTemplate: r"""Null safety is disabled for this library.""",
|
||||||
r"""Null safety features are disabled for this library.""",
|
|
||||||
correctionMessageTemplate:
|
correctionMessageTemplate:
|
||||||
r"""Try removing the package language version or setting the language version to #string or higher.""",
|
r"""Try removing the package language version or setting the language version to #string or higher.""",
|
||||||
withArguments: _withArgumentsNullSafetyOptOutImplicit);
|
withArguments: _withArgumentsNullSafetyOptOutImplicit);
|
||||||
|
@ -9461,7 +9459,7 @@ const Code<Message Function(String string)> codeNullSafetyOptOutImplicit =
|
||||||
Message _withArgumentsNullSafetyOptOutImplicit(String string) {
|
Message _withArgumentsNullSafetyOptOutImplicit(String string) {
|
||||||
if (string.isEmpty) throw 'No string provided';
|
if (string.isEmpty) throw 'No string provided';
|
||||||
return new Message(codeNullSafetyOptOutImplicit,
|
return new Message(codeNullSafetyOptOutImplicit,
|
||||||
problemMessage: """Null safety features are disabled for this library.""",
|
problemMessage: """Null safety is disabled for this library.""",
|
||||||
correctionMessage:
|
correctionMessage:
|
||||||
"""Try removing the package language version or setting the language version to ${string} or higher.""",
|
"""Try removing the package language version or setting the language version to ${string} or higher.""",
|
||||||
arguments: {'string': string});
|
arguments: {'string': string});
|
||||||
|
@ -10997,23 +10995,19 @@ const Code<Null> codeStrongModeNNBDButOptOut = messageStrongModeNNBDButOptOut;
|
||||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||||
const MessageCode messageStrongModeNNBDButOptOut = const MessageCode(
|
const MessageCode messageStrongModeNNBDButOptOut = const MessageCode(
|
||||||
"StrongModeNNBDButOptOut",
|
"StrongModeNNBDButOptOut",
|
||||||
problemMessage:
|
problemMessage: r"""Library doesn't support null safety.""");
|
||||||
r"""A library can't opt out of null safety by default, when using sound null safety.""");
|
|
||||||
|
|
||||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||||
const Template<
|
const Template<Message Function(List<String> _names)>
|
||||||
Message Function(
|
templateStrongModeNNBDPackageOptOut =
|
||||||
List<String>
|
const Template<Message Function(List<String> _names)>(
|
||||||
_names)> templateStrongModeNNBDPackageOptOut = const Template<
|
problemMessageTemplate:
|
||||||
Message Function(List<String> _names)>(
|
r"""The following dependencies don't support null safety:
|
||||||
problemMessageTemplate:
|
|
||||||
r"""Cannot run with sound null safety, because the following dependencies
|
|
||||||
don't support null safety:
|
|
||||||
|
|
||||||
#names
|
#names
|
||||||
|
|
||||||
For solutions, see https://dart.dev/go/unsound-null-safety""",
|
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.
|
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||||
const Code<Message Function(List<String> _names)>
|
const Code<Message Function(List<String> _names)>
|
||||||
|
@ -11027,9 +11021,7 @@ Message _withArgumentsStrongModeNNBDPackageOptOut(List<String> _names) {
|
||||||
if (_names.isEmpty) throw 'No names provided';
|
if (_names.isEmpty) throw 'No names provided';
|
||||||
String names = itemizeNames(_names);
|
String names = itemizeNames(_names);
|
||||||
return new Message(codeStrongModeNNBDPackageOptOut,
|
return new Message(codeStrongModeNNBDPackageOptOut,
|
||||||
problemMessage:
|
problemMessage: """The following dependencies don't support null safety:
|
||||||
"""Cannot run with sound null safety, because the following dependencies
|
|
||||||
don't support null safety:
|
|
||||||
|
|
||||||
${names}
|
${names}
|
||||||
|
|
||||||
|
|
|
@ -306,7 +306,7 @@ ExperimentDisabled:
|
||||||
analyzerCode: ParserErrorCode.EXPERIMENT_NOT_ENABLED
|
analyzerCode: ParserErrorCode.EXPERIMENT_NOT_ENABLED
|
||||||
|
|
||||||
NullSafetyDisabledInvalidLanguageVersion:
|
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
|
analyzerCode: ParserErrorCode.EXPERIMENT_NOT_ENABLED
|
||||||
|
|
||||||
ExperimentDisabledInvalidLanguageVersion:
|
ExperimentDisabledInvalidLanguageVersion:
|
||||||
|
@ -1591,12 +1591,11 @@ Unspecified:
|
||||||
problemMessage: "#string"
|
problemMessage: "#string"
|
||||||
|
|
||||||
StrongModeNNBDButOptOut:
|
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:
|
StrongModeNNBDPackageOptOut:
|
||||||
problemMessage: |
|
problemMessage: |
|
||||||
Cannot run with sound null safety, because the following dependencies
|
The following dependencies don't support null safety:
|
||||||
don't support null safety:
|
|
||||||
|
|
||||||
#names
|
#names
|
||||||
|
|
||||||
|
@ -5173,7 +5172,7 @@ FieldNonNullableNotInitializedByConstructorError:
|
||||||
problemMessage: "This constructor should initialize field '#name' because its type '#type' doesn't allow null."
|
problemMessage: "This constructor should initialize field '#name' because its type '#type' doesn't allow null."
|
||||||
|
|
||||||
NullSafetyOptOutExplicit:
|
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."
|
correctionMessage: "Try removing the `@dart=` annotation or setting the language version to #string or higher."
|
||||||
|
|
||||||
ExperimentOptOutExplicit:
|
ExperimentOptOutExplicit:
|
||||||
|
@ -5181,7 +5180,7 @@ ExperimentOptOutExplicit:
|
||||||
correctionMessage: "Try removing the `@dart=` annotation or setting the language version to #string2 or higher."
|
correctionMessage: "Try removing the `@dart=` annotation or setting the language version to #string2 or higher."
|
||||||
|
|
||||||
NullSafetyOptOutImplicit:
|
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."
|
correctionMessage: "Try removing the package language version or setting the language version to #string or higher."
|
||||||
|
|
||||||
NullSafetyOptOutComment:
|
NullSafetyOptOutComment:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// 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*/;
|
library /*isNonNullableByDefault*/;
|
||||||
import self as self;
|
import self as self;
|
||||||
|
@ -76,7 +76,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// 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*/;
|
library /*isNonNullableByDefault*/;
|
||||||
import self as self;
|
import self as self;
|
||||||
|
@ -76,7 +76,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -27,7 +27,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -27,7 +27,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems outside component:
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -9,12 +9,12 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the package language version or setting the language version to 2.10 or higher.
|
||||||
// int? versionedUnallowedPackage; // error
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_AllowedPackage; // error
|
// int? versioned_2_9_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -58,7 +58,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_Library; // error
|
// int? versioned_2_8_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -75,7 +75,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_Library; // error
|
// int? versioned_2_9_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -92,7 +92,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_10_Library; // error
|
// int? versioned_2_10_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems outside component:
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -9,12 +9,12 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the package language version or setting the language version to 2.10 or higher.
|
||||||
// int? versionedUnallowedPackage; // error
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_AllowedPackage; // error
|
// int? versioned_2_9_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -58,7 +58,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_Library; // error
|
// int? versioned_2_8_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -75,7 +75,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_Library; // error
|
// int? versioned_2_9_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -92,7 +92,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_10_Library; // error
|
// int? versioned_2_10_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems outside component:
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -9,12 +9,12 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the package language version or setting the language version to 2.10 or higher.
|
||||||
// int? versionedUnallowedPackage; // error
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_AllowedPackage; // error
|
// int? versioned_2_9_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -59,7 +59,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_Library; // error
|
// int? versioned_2_8_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -76,7 +76,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_Library; // error
|
// int? versioned_2_9_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -93,7 +93,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_10_Library; // error
|
// int? versioned_2_10_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -26,7 +26,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_Library; // error
|
// int? versioned_2_8_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -43,7 +43,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_Library; // error
|
// int? versioned_2_9_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -60,7 +60,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_10_Library; // error
|
// int? versioned_2_10_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,8 +2,7 @@ main = main::main;
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// Problems in component:
|
||||||
//
|
//
|
||||||
// Error: Cannot run with sound null safety, because the following dependencies
|
// Error: The following dependencies don't support null safety:
|
||||||
// don't support null safety:
|
|
||||||
//
|
//
|
||||||
// - package:foo
|
// - package:foo
|
||||||
// - package:bar
|
// - package:bar
|
||||||
|
|
|
@ -2,8 +2,7 @@ main = main::main;
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// Problems in component:
|
||||||
//
|
//
|
||||||
// Error: Cannot run with sound null safety, because the following dependencies
|
// Error: The following dependencies don't support null safety:
|
||||||
// don't support null safety:
|
|
||||||
//
|
//
|
||||||
// - package:foo
|
// - package:foo
|
||||||
// - package:bar
|
// - package:bar
|
||||||
|
|
|
@ -2,8 +2,7 @@ main = main::main;
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// Problems in component:
|
||||||
//
|
//
|
||||||
// Error: Cannot run with sound null safety, because the following dependencies
|
// Error: The following dependencies don't support null safety:
|
||||||
// don't support null safety:
|
|
||||||
//
|
//
|
||||||
// - package:bar
|
// - package:bar
|
||||||
//
|
//
|
||||||
|
|
|
@ -3,7 +3,7 @@ library from "org-dartlang-test:///bin/runMe.dart" as run {
|
||||||
//
|
//
|
||||||
// Problems in library:
|
// 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
|
// // @dart = 2.8
|
||||||
// ^^^^^^^^^^^^^^
|
// ^^^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -3,7 +3,7 @@ library from "org-dartlang-test:///main.dart" as main {
|
||||||
//
|
//
|
||||||
// Problems in library:
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -86,7 +86,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.8
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -86,7 +86,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.8
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.8
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.8
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart = 2.6
|
||||||
// ^^^^^^^^^^^^^^
|
// ^^^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart = 2.6
|
||||||
// ^^^^^^^^^^^^^^
|
// ^^^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// 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*/;
|
library /*isNonNullableByDefault*/;
|
||||||
import self as self;
|
import self as self;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// 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*/;
|
library /*isNonNullableByDefault*/;
|
||||||
import self as self;
|
import self as self;
|
||||||
|
|
|
@ -12,7 +12,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart = 2.7
|
||||||
// ^^^^^^^^^^^^^^
|
// ^^^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -12,7 +12,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart = 2.7
|
||||||
// ^^^^^^^^^^^^^^
|
// ^^^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// Problems in component:
|
||||||
//
|
//
|
||||||
// Error: Cannot run with sound null safety, because the following dependencies
|
// Error: The following dependencies don't support null safety:
|
||||||
// don't support null safety:
|
|
||||||
//
|
//
|
||||||
// - package:opt_in_package/opt_out_lib.dart
|
// - package:opt_in_package/opt_out_lib.dart
|
||||||
// - package:opt_out_package
|
// - package:opt_out_package
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// Problems in component:
|
||||||
//
|
//
|
||||||
// Error: Cannot run with sound null safety, because the following dependencies
|
// Error: The following dependencies don't support null safety:
|
||||||
// don't support null safety:
|
|
||||||
//
|
//
|
||||||
// - package:opt_in_package/opt_out_lib.dart
|
// - package:opt_in_package/opt_out_lib.dart
|
||||||
// - package:opt_out_package
|
// - package:opt_out_package
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
//
|
//
|
||||||
// Problems outside component:
|
// 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
|
// // @dart=2.7
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// Problems in component:
|
||||||
//
|
//
|
||||||
// Error: Cannot run with sound null safety, because the following dependencies
|
// Error: The following dependencies don't support null safety:
|
||||||
// don't support null safety:
|
|
||||||
//
|
//
|
||||||
// - package:opt_out_package
|
// - package:opt_out_package
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems in component:
|
// Problems in component:
|
||||||
//
|
//
|
||||||
// Error: Cannot run with sound null safety, because the following dependencies
|
// Error: The following dependencies don't support null safety:
|
||||||
// don't support null safety:
|
|
||||||
//
|
//
|
||||||
// - package:opt_out_package
|
// - package:opt_out_package
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems outside component:
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -9,12 +9,12 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the package language version or setting the language version to 2.10 or higher.
|
||||||
// int? versionedUnallowedPackage; // error
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_AllowedPackage; // error
|
// int? versioned_2_9_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -58,7 +58,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_Library; // error
|
// int? versioned_2_8_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -75,7 +75,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_Library; // error
|
// int? versioned_2_9_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems outside component:
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -9,12 +9,12 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the package language version or setting the language version to 2.10 or higher.
|
||||||
// int? versionedUnallowedPackage; // error
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_AllowedPackage; // error
|
// int? versioned_2_9_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -58,7 +58,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_Library; // error
|
// int? versioned_2_8_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -75,7 +75,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_Library; // error
|
// int? versioned_2_9_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Problems outside component:
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.9 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -9,12 +9,12 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the package language version or setting the language version to 2.10 or higher.
|
||||||
// int? versionedUnallowedPackage; // error
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_AllowedPackage; // error
|
// int? versioned_2_8_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
// // @dart=2.8
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_AllowedPackage; // error
|
// int? versioned_2_9_AllowedPackage; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -59,7 +59,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_Library; // error
|
// int? versioned_2_8_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -76,7 +76,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_Library; // error
|
// int? versioned_2_9_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -26,7 +26,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_8_Library; // error
|
// int? versioned_2_8_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
@ -43,7 +43,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.10 or higher.
|
||||||
// int? versioned_2_9_Library; // error
|
// int? versioned_2_9_Library; // error
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -11,7 +11,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// class LegacyClass4c implements GenericInterface<num?> {}
|
// class LegacyClass4c implements GenericInterface<num?> {}
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -11,7 +11,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// class LegacyClass4c implements GenericInterface<num?> {}
|
// class LegacyClass4c implements GenericInterface<num?> {}
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -11,7 +11,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// class LegacyClass4c implements GenericInterface<num?> {}
|
// class LegacyClass4c implements GenericInterface<num?> {}
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -102,7 +102,7 @@ library;
|
||||||
// c?..f!;
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// c?..f!;
|
// c?..f!;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -102,7 +102,7 @@ library;
|
||||||
// c?..f!;
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// c?..f!;
|
// c?..f!;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -102,7 +102,7 @@ library;
|
||||||
// c?..f!;
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// c?..f!;
|
// c?..f!;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// int? i;
|
// int? i;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -43,7 +43,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// class B extends A<String?> {}
|
// class B extends A<String?> {}
|
||||||
// ^
|
// ^
|
||||||
|
@ -51,7 +51,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// typedef F = void Function()?;
|
// typedef F = void Function()?;
|
||||||
// ^
|
// ^
|
||||||
|
@ -59,7 +59,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// List<String?> l = [];
|
// List<String?> l = [];
|
||||||
// ^
|
// ^
|
||||||
|
@ -67,7 +67,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// String? s = null;
|
// String? s = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -75,7 +75,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// void method(void f()?, {int a}) {}
|
// void method(void f()?, {int a}) {}
|
||||||
// ^
|
// ^
|
||||||
|
@ -83,7 +83,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// var t = s!;
|
// var t = s!;
|
||||||
// ^
|
// ^
|
||||||
|
@ -91,7 +91,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// List<String?> l = null;
|
// List<String?> l = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -99,7 +99,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// String? s = null;
|
// String? s = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -107,7 +107,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// var t = s!;
|
// var t = s!;
|
||||||
// ^
|
// ^
|
||||||
|
@ -125,7 +125,7 @@ library;
|
||||||
// c?..f;
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// c?[0];
|
// c?[0];
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -43,7 +43,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// class B extends A<String?> {}
|
// class B extends A<String?> {}
|
||||||
// ^
|
// ^
|
||||||
|
@ -51,7 +51,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// typedef F = void Function()?;
|
// typedef F = void Function()?;
|
||||||
// ^
|
// ^
|
||||||
|
@ -59,7 +59,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// List<String?> l = [];
|
// List<String?> l = [];
|
||||||
// ^
|
// ^
|
||||||
|
@ -67,7 +67,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// String? s = null;
|
// String? s = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -75,7 +75,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// void method(void f()?, {int a}) {}
|
// void method(void f()?, {int a}) {}
|
||||||
// ^
|
// ^
|
||||||
|
@ -83,7 +83,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// var t = s!;
|
// var t = s!;
|
||||||
// ^
|
// ^
|
||||||
|
@ -91,7 +91,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// List<String?> l = null;
|
// List<String?> l = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -99,7 +99,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// String? s = null;
|
// String? s = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -107,7 +107,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// var t = s!;
|
// var t = s!;
|
||||||
// ^
|
// ^
|
||||||
|
@ -125,7 +125,7 @@ library;
|
||||||
// c?..f;
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// c?[0];
|
// c?[0];
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -36,7 +36,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// class B extends A<String?> {}
|
// class B extends A<String?> {}
|
||||||
// ^
|
// ^
|
||||||
|
@ -44,7 +44,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// typedef F = void Function()?;
|
// typedef F = void Function()?;
|
||||||
// ^
|
// ^
|
||||||
|
@ -52,7 +52,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// List<String?> l = [];
|
// List<String?> l = [];
|
||||||
// ^
|
// ^
|
||||||
|
@ -60,7 +60,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// String? s = null;
|
// String? s = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -68,7 +68,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// void method(void f()?, {int a}) {}
|
// void method(void f()?, {int a}) {}
|
||||||
// ^
|
// ^
|
||||||
|
@ -76,7 +76,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// var t = s!;
|
// var t = s!;
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -43,7 +43,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// class B extends A<String?> {}
|
// class B extends A<String?> {}
|
||||||
// ^
|
// ^
|
||||||
|
@ -51,7 +51,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// typedef F = void Function()?;
|
// typedef F = void Function()?;
|
||||||
// ^
|
// ^
|
||||||
|
@ -59,7 +59,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// List<String?> l = [];
|
// List<String?> l = [];
|
||||||
// ^
|
// ^
|
||||||
|
@ -67,7 +67,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// String? s = null;
|
// String? s = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -75,7 +75,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// void method(void f()?, {int a}) {}
|
// void method(void f()?, {int a}) {}
|
||||||
// ^
|
// ^
|
||||||
|
@ -83,7 +83,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// var t = s!;
|
// var t = s!;
|
||||||
// ^
|
// ^
|
||||||
|
@ -91,7 +91,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// List<String?> l = null;
|
// List<String?> l = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -99,7 +99,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// String? s = null;
|
// String? s = null;
|
||||||
// ^
|
// ^
|
||||||
|
@ -107,7 +107,7 @@ library;
|
||||||
// // @dart=2.5
|
// // @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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// var t = s!;
|
// var t = s!;
|
||||||
// ^
|
// ^
|
||||||
|
@ -125,7 +125,7 @@ library;
|
||||||
// c?..f;
|
// 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// c?[0];
|
// c?[0];
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -40,7 +40,7 @@ library opted_out_lib;
|
||||||
//
|
//
|
||||||
// Problems in library:
|
// 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
|
// // @dart=2.6
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -40,7 +40,7 @@ library opted_out_lib;
|
||||||
//
|
//
|
||||||
// Problems in library:
|
// 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
|
// // @dart=2.6
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.9
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// return null?[1];
|
// return null?[1];
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// return null?[1];
|
// return null?[1];
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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.
|
// Try removing the `@dart=` annotation or setting the language version to 2.12 or higher.
|
||||||
// return null?[1];
|
// return null?[1];
|
||||||
// ^
|
// ^
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.8
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@ library;
|
||||||
//
|
//
|
||||||
// Problems in 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
|
// // @dart=2.8
|
||||||
// ^^^^^^^^^^^^
|
// ^^^^^^^^^^^^
|
||||||
//
|
//
|
||||||
|
|
|
@ -37,8 +37,7 @@ main() async {
|
||||||
print('stdout: ${result.stdout}');
|
print('stdout: ${result.stdout}');
|
||||||
print('stderr: ${result.stderr}');
|
print('stderr: ${result.stderr}');
|
||||||
Expect.equals(kCompilationErrorExitCode, result.exitCode);
|
Expect.equals(kCompilationErrorExitCode, result.exitCode);
|
||||||
Expect.stringContainsInOrder(result.stderr, [
|
Expect.stringContainsInOrder(
|
||||||
"Error: A library can't opt out of null safety by default, when using sound null safety."
|
result.stderr, ["Error: Library doesn't support null safety."]);
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,5 +12,5 @@ void main() {
|
||||||
int? x;
|
int? x;
|
||||||
// ^
|
// ^
|
||||||
// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED
|
// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED
|
||||||
// [cfe] Null safety features are disabled for this library.
|
// [cfe] Null safety is disabled for this library.
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,6 @@ main() {
|
||||||
// ^
|
// ^
|
||||||
// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED
|
// [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'.
|
// [cfe] The operator '[]' isn't defined for the class 'Null'.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue