| Index: pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| diff --git a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| index da86f94ba7a0ef31a7751d4abe471c5b81a1ec1c..b6e116a429073b0aaf032a331aea7cc9c8a52ca9 100644
|
| --- a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| +++ b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| @@ -1740,7 +1740,7 @@ $downwards<List<int>> g3() async {
|
| build(declared: "Future", downwards: "Future", upwards: "MyFuture"));
|
| }
|
|
|
| - void test_futureUnion_downwardsGenericMethods() {
|
| + void test_futureUnion_downwardsGenericMethodWithFutureReturn() {
|
| // Regression test for https://github.com/dart-lang/sdk/issues/27134
|
| //
|
| // We need to take a future union into account for both directions of
|
| @@ -1758,6 +1758,20 @@ class A {}
|
| ''');
|
| }
|
|
|
| + void test_futureUnion_downwardsGenericMethodWithGenericReturn() {
|
| + // Regression test for https://github.com/dart-lang/sdk/issues/27284
|
| + checkFile(r'''
|
| +import 'dart:async';
|
| +
|
| +/*=T*/ id/*<T>*/(/*=T*/ x) => x;
|
| +
|
| +main() async {
|
| + Future<String> f;
|
| + String s = await id(f);
|
| +}
|
| + ''');
|
| + }
|
| +
|
| void test_futureUnion_upwardsGenericMethods() {
|
| // Regression test for https://github.com/dart-lang/sdk/issues/27151
|
| checkFile(r'''
|
|
|