Files
sdk/pkg/front_end/testcases/async_function.dart.strong.expect
T
Peter von der Ahé 874710bdf3 Add missing expectation files
Change-Id: I5c87f431bae49471908a96fbbfe8b1f4d3098c6b
Reviewed-on: https://dart-review.googlesource.com/c/81822
Commit-Queue: Peter von der Ahé <ahe@google.com>
Auto-Submit: Peter von der Ahé <ahe@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2018-10-29 13:58:59 +00:00

32 lines
922 B
Plaintext

library;
import self as self;
import "dart:async" as asy;
import "dart:core" as core;
static field core::List<core::String> stringList = <core::String>["bar"];
static method asyncString() → asy::Future<core::String> async {
return "foo";
}
static method asyncString2() → asy::Future<core::String> async {
return self::asyncString();
}
static method syncStarString() → core::Iterable<core::String> sync* {
yield "foo";
yield* self::syncStarString2();
yield* self::stringList;
}
static method syncStarString2() → core::Iterable<core::String> sync* {
yield "foo";
}
static method asyncStarString() → asy::Stream<core::String> async* {
yield "foo";
yield* self::asyncStarString2();
yield await self::asyncString();
}
static method asyncStarString2() → asy::Stream<core::String> async* {
yield "bar";
}
static method main() → dynamic async {
core::String str = await self::asyncString();
}