| Index: pkg/front_end/testcases/inference/downwards_inference_async_await.dart
|
| diff --git a/pkg/front_end/testcases/inference/downwards_inference_async_await.dart b/pkg/front_end/testcases/inference/downwards_inference_async_await.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9d81c0239250059d55a32e676e8a631ff7e14ca3
|
| --- /dev/null
|
| +++ b/pkg/front_end/testcases/inference/downwards_inference_async_await.dart
|
| @@ -0,0 +1,16 @@
|
| +// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +/*@testedFeatures=inference*/
|
| +library test;
|
| +
|
| +import 'dart:async';
|
| +
|
| +Future test() async {
|
| + dynamic d;
|
| + List<int> l0 =
|
| + await /*@typeArgs=int*/ [/*info:DYNAMIC_CAST*/ /*@promotedType=none*/ d];
|
| + List<int> l1 = await /*@typeArgs=List<int>*/ new Future.value(
|
| + /*@typeArgs=dynamic*/ [/*@promotedType=none*/ d]);
|
| +}
|
|
|