mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Fix test that assumed an async function returned a Future<not-dynamic>.
Review-Url: https://codereview.chromium.org/2788103002 .
This commit is contained in:
parent
46ba54e315
commit
91e4917735
1 changed files with 3 additions and 3 deletions
|
@ -994,9 +994,9 @@ void testTypes() {
|
|||
new Future<int>.delayed(Duration.ZERO, () => value));
|
||||
testType(
|
||||
"Future.microtask($value)", new Future<int>.microtask(() => value));
|
||||
testType("Future.sync($value)", new Future<int>.sync(() => value)); // //# 01: ok
|
||||
testType("Future.sync(future($value))", // //# 01: continued
|
||||
new Future<int>.sync(() async => new Future<int>.value(value))); //# 01: continued
|
||||
testType("Future.sync($value)", new Future<int>.sync(() => value)); //# 01: ok
|
||||
testType("Future.sync(future($value))", // //# 01: continued
|
||||
new Future<int>.sync(() => new Future<int>.value(value))); //# 01: continued
|
||||
testType("Future.value($value)", new Future<int>.value(value));
|
||||
}
|
||||
testType("Completer.future", new Completer<int>().future);
|
||||
|
|
Loading…
Reference in a new issue