// Copyright (c) 2016, 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. import 'dart:async'; Future asyncString() async { return "foo"; } Future asyncString2() async { return asyncString(); } Iterable syncStarString() sync* { yield "foo"; yield* syncStarString2(); yield* stringList; } Iterable syncStarString2() sync* { yield "foo"; } Stream asyncStarString() async* { yield "foo"; yield* asyncStarString2(); yield await asyncString(); } Stream asyncStarString2() async* { yield "bar"; } List stringList = ["bar"]; main() async { String str = await asyncString(); }