| Index: pkg/front_end/testcases/inference/future_then_4.dart
|
| diff --git a/pkg/front_end/testcases/inference/future_then_4.dart b/pkg/front_end/testcases/inference/future_then_4.dart
|
| index d46f8774acbabd825cadc3c18dfadbdfee13b28f..f2b1eba5c2f3ad0baba0b554759179f7d3153847 100644
|
| --- a/pkg/front_end/testcases/inference/future_then_4.dart
|
| +++ b/pkg/front_end/testcases/inference/future_then_4.dart
|
| @@ -16,39 +16,31 @@ class MyFuture<T> implements Future<T> {
|
|
|
| void main() {
|
| MyFuture f;
|
| - MyFuture<int> t1 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| - /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async =>
|
| - await new MyFuture<int>.value(3));
|
| - MyFuture<int> t2 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| - /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
|
| + MyFuture<int> t1 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| + /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async =>
|
| + await new MyFuture<int>.value(3));
|
| + MyFuture<int> t2 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| + /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
|
| return await new MyFuture<int>.value(3);
|
| });
|
| - MyFuture<int> t3 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| - /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async => 3);
|
| - MyFuture<int> t4 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| - /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
|
| + MyFuture<int> t3 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| + /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async => 3);
|
| + MyFuture<int> t4 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| + /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
|
| return 3;
|
| });
|
| - MyFuture<int> t5 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| - /*@returnType=MyFuture<int>*/ (/*@type=dynamic*/ _) =>
|
| - new MyFuture<int>.value(3));
|
| - MyFuture<int> t6 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| - /*@returnType=MyFuture<int>*/ (/*@type=dynamic*/ _) {
|
| + MyFuture<int> t5 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| + /*@returnType=MyFuture<int>*/ (/*@type=dynamic*/ _) =>
|
| + new MyFuture<int>.value(3));
|
| + MyFuture<int> t6 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| + /*@returnType=MyFuture<int>*/ (/*@type=dynamic*/ _) {
|
| return new MyFuture<int>.value(3);
|
| });
|
| - MyFuture<int> t7 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| - /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async =>
|
| - new MyFuture<int>.value(3));
|
| - MyFuture<int> t8 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| - /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
|
| + MyFuture<int> t7 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| + /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async =>
|
| + new MyFuture<int>.value(3));
|
| + MyFuture<int> t8 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
|
| + /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
|
| return new MyFuture<int>.value(3);
|
| });
|
| }
|
|
|