blob: 36bd4efbd590fbefd0ae508a231cf84ef285ffc5 [file] [log] [blame]
// 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.
void main() async {
await for (var i in foobar()) {
print(i);
}
print("Done!");
}
foobar() async* {
/*bc:4*/ yield /*bc:1*/ foo() /*bc:3*/ + /*bc:2*/ bar();
/*bc:8*/ yield /*bc:5*/ bar() /*bc:7*/ * /*bc:6*/ foo();
}
foo() {
return 42;
}
bar() {
return 3;
}