| Index: pkg/front_end/testcases/inference/future_or_subtyping.dart
|
| diff --git a/pkg/front_end/testcases/inference/future_or_subtyping.dart b/pkg/front_end/testcases/inference/future_or_subtyping.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..349251b0b1225a0aa256062ddb5052af1505379e
|
| --- /dev/null
|
| +++ b/pkg/front_end/testcases/inference/future_or_subtyping.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';
|
| +
|
| +void add(int x) {}
|
| +add2(int y) {}
|
| +main() {
|
| + Future<int> f;
|
| + var /*@type=Future<void>*/ a = /*@promotedType=none*/ f.then(add);
|
| + var /*@type=Future<dynamic>*/ b = /*@promotedType=none*/ f.then(add2);
|
| +}
|
|
|