Files
sdk/pkg/front_end/testcases/bug33196.dart.direct.expect
T
Kevin Millikin 51fa5c1662 Correctly transform async functions with FutureOr return types
The async transformer did not allocate a completer with the correct
type in the case for async functions with a FutureOr return type.

Fixes https://github.com/dart-lang/sdk/issues/33196

Change-Id: I72654f24576295e38e8d79dff30aae5c90cb2564
Reviewed-on: https://dart-review.googlesource.com/56488
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2018-05-24 10:54:03 +00:00

13 lines
291 B
Plaintext

library;
import self as self;
import "dart:core" as core;
import "dart:async" as asy;
static method main() → dynamic {
dynamic result = self::returnsString();
core::print(result.runtimeType);
}
static method returnsString() → asy::FutureOr<core::String> async {
return "oh no";
}