5e0410a34f
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>
18 lines
422 B
Dart
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;
|
|
});
|
|
}
|