| Index: pkg/front_end/testcases/inference/block_bodied_lambdas_sync_star.dart
|
| diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_sync_star.dart b/pkg/front_end/testcases/inference/block_bodied_lambdas_sync_star.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bbbc5a1e6ae27d665b511bb714ccccffc44a8a3c
|
| --- /dev/null
|
| +++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_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<num>*/ f = /*@returnType=Iterable<num>*/ () sync* {
|
| + yield 1;
|
| + yield* /*@typeArgs=num*/ [3, 4.0];
|
| + };
|
| + Iterable<num> g = /*@promotedType=none*/ f();
|
| + Iterable<int> h = /*info:ASSIGNMENT_CAST*/ /*@promotedType=none*/ f();
|
| +}
|
|
|