Files
sdk/pkg/front_end/testcases/inference/generator_closure.dart
T
Paul Berry 5e0410a34f Consistently wrap/unwrap types during closure type inference.
Fixes #32066.

Change-Id: I5383ee2ebe8de1b0220f0b6fa55461fb0b3e2d56
Reviewed-on: https://dart-review.googlesource.com/39540
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-02-07 10:00:09 +00:00

18 lines
422 B
Dart

// Copyright (c) 2018, 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 foo(Stream<int> Function() values) {}
void main() {
foo(/*@returnType=Stream<int>*/ () async* {
yield 0;
yield 1;
});
}