| Index: pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync_star.dart
|
| diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync_star.dart b/pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync_star.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c7a43227012c9b191a7eb9ae7350d32630a12f13
|
| --- /dev/null
|
| +++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync_star.dart
|
| @@ -0,0 +1,15 @@
|
| +// 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;
|
| +
|
| +main() {
|
| + var /*@type=() → Iterable<Null>*/ f = /*@returnType=Iterable<Null>*/ () sync* {
|
| + yield null;
|
| + };
|
| + Iterable y = /*@promotedType=none*/ f();
|
| + Iterable<String> z = /*@promotedType=none*/ f();
|
| + String s = /*@promotedType=none*/ f().first;
|
| +}
|
|
|