blob: 97614a81570cdfa18b1e381278c992da808a1b4d [file] [log] [blame]
// Copyright (c) 2020, the Dart Team. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in
// the LICENSE file.
// @dart = 2.9
// Regression test for: https://github.com/dart-lang/sdk/issues/42234
Iterable<Object> f() sync* {
yield* g();
}
Iterable<int> g() sync* {
yield 1;
yield 2;
}
main() {
for (var i in f()) {
print(i);
}
}