More fix for #1094: LanguageFeatures/nnbd tests updated according to the recent dart behaviour, missing Issdue tags added.
diff --git a/LanguageFeatures/nnbd/Least-greatest-closure/typedef/typedef_static_t19.dart b/LanguageFeatures/nnbd/Least-greatest-closure/typedef/typedef_static_t19.dart
index 73ab79a..91a4b2c 100644
--- a/LanguageFeatures/nnbd/Least-greatest-closure/typedef/typedef_static_t19.dart
+++ b/LanguageFeatures/nnbd/Least-greatest-closure/typedef/typedef_static_t19.dart
@@ -35,9 +35,6 @@
f(() => captureTypeArgument()..call());
f(() => captureTypeArgument()..call(throw 1));
- // ^
- // [analyzer] unspecified
- // [cfe] unspecified
f(() => captureTypeArgument()..call('Hello'));
// ^
diff --git a/LanguageFeatures/nnbd/legacy_libraries_A01_t01.dart b/LanguageFeatures/nnbd/legacy_libraries_A01_t01.dart
index 0ae3118..bda2873 100644
--- a/LanguageFeatures/nnbd/legacy_libraries_A01_t01.dart
+++ b/LanguageFeatures/nnbd/legacy_libraries_A01_t01.dart
@@ -14,7 +14,10 @@
/// @author iarkh@unipro.ru
// Requirements=nnbd-strong
+
// @dart=2.6
+// ^^^^^^^^^
+// [cfe] unspecified
main() {}
diff --git a/LanguageFeatures/nnbd/weak/future_flattening_A01_t54.dart b/LanguageFeatures/nnbd/weak/future_flattening_A01_t54.dart
index 6e96e6e..2104d3d 100644
--- a/LanguageFeatures/nnbd/weak/future_flattening_A01_t54.dart
+++ b/LanguageFeatures/nnbd/weak/future_flattening_A01_t54.dart
@@ -14,16 +14,13 @@
/// [flatten(T) = S]
/// otherwise [flatten(T) = T]
///
-/// @description Checks that async function with `Future<FutureOr<Never>>` return
-/// type cannot return null in the weak mode.
+/// @description Checks that async function with `Future<FutureOr<Never>>`
+/// return type can be `null` in the weak mode according to the Issue #44246,
+/// etc. evaluation.
///
-/// We'll have to keep this one on a waiting list, blocked by
-/// https://github.com/dart-lang/language/issues/1346 (or some issue that can be
-/// found looking at 1346, if the discussion is taken somewhere else, say
-/// https://github.com/dart-lang/sdk/issues/44246).
-///
-/// @Issue 41324, 41437
+/// @Issue 41324, 41437, 44246
/// @Issue https://github.com/dart-lang/language/issues/1346
+///
/// @author iarkh@unipro.ru
// Requirements=nnbd-weak
@@ -40,6 +37,6 @@
main() {
asyncStart();
- test().then((value) { Expect.fail("Should not reach here!"); },
- onError:(e) => asyncEnd());
+ test().then((value) { Expect.isNull(value); });
+ asyncEnd();
}
diff --git a/LanguageFeatures/nnbd/weak/future_flattening_A01_t56.dart b/LanguageFeatures/nnbd/weak/future_flattening_A01_t56.dart
index e0d0753..9252489 100644
--- a/LanguageFeatures/nnbd/weak/future_flattening_A01_t56.dart
+++ b/LanguageFeatures/nnbd/weak/future_flattening_A01_t56.dart
@@ -18,15 +18,9 @@
/// `Future<FutureOr<Never>>` type dynamically and the expression cannot be
/// `null` in the weak mode.
///
-/// We'll have to keep this one on a waiting list, blocked by
-/// https://github.com/dart-lang/language/issues/1346 (or some issue that can be
-/// found looking at 1346, if the discussion is taken somewhere else, say
-/// https://github.com/dart-lang/sdk/issues/44246).
-///
-///
/// @Issue https://github.com/dart-lang/language/pull/941
/// @Issue https://github.com/dart-lang/co19/issues/703
-/// @Issue 41266,41437,42236,42237
+/// @Issue 41266, 41437, 42236, 42237, 44246
/// @Issue https://github.com/dart-lang/language/issues/1346
///
/// @author iarkh@unipro.ru
@@ -42,6 +36,6 @@
main() {
asyncStart();
- test().then((value) { Expect.fail("Should not reach here!"); },
- onError:(e) => asyncEnd());
+ test().then((value) { Expect.isNull(value); });
+ asyncEnd();
}