51fa5c1662
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>
13 lines
291 B
Plaintext
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";
|
|
}
|