Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1035)

Unified Diff: tests/language_2/async_return_types_test.dart

Issue 2986093002: Revert two Kernel changes that were causing test failures. (Closed)
Patch Set: Revert "Migrate language/async_backwards... ... language/async_star_take..." Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language_2/async_rethrow_test.dart ('k') | tests/language_2/async_star_await_pauses_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_2/async_return_types_test.dart
diff --git a/tests/language_2/async_return_types_test.dart b/tests/language_2/async_return_types_test.dart
deleted file mode 100644
index eae381b19112164da26fa11a218a0a362ba77ead..0000000000000000000000000000000000000000
--- a/tests/language_2/async_return_types_test.dart
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2015, 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";
-import "package:expect/expect.dart";
-import "package:async_helper/async_helper.dart";
-
-Future foo1() async {
- return 3;
-}
-
-Future<int> foo2() async {
- return 3;
-}
-
-Future<int> //# wrongTypeParameter: compile-time error
-foo3() async {
- return "String";
-}
-
-Future<int, String> //# tooManyTypeParameters: compile-time error
-foo4() async {
- return "String";
-}
-
-int //# wrongReturnType: compile-time error
-foo5() async {
- return 3;
-}
-
-Future<int> foo6() async {
- // This is fine, the future is flattened
- return new Future<int>.value(3);
-}
-
-Future<Future<int>> //# nestedFuture: compile-time error
-foo7() async {
- return new Future<int>.value(3);
-}
-
-Iterable<int> foo8() sync* {
- yield 1;
- // Can only have valueless return in sync* functions.
- return
- 8 //# return_value_sync_star: compile-time error
- ;
-}
-
-Stream<int> foo9() async* {
- yield 1;
- // Can only have valueless return in async* functions.
- return
- 8 //# return_value_sync_star: compile-time error
- ;
-}
-
-test() async {
- Expect.equals(3, await foo1());
- Expect.equals(3, await foo2());
- Expect.equals("String", await foo3());
- Expect.equals("String", await foo4());
- Expect.equals(3, await foo5());
- Expect.equals(3, await await foo6());
- Expect.equals(3, await await foo7());
- Expect.listEquals([1], foo8().toList());
- Expect.listEquals([1], await foo9().toList());
-}
-
-main() {
- asyncTest(test);
-}
« no previous file with comments | « tests/language_2/async_rethrow_test.dart ('k') | tests/language_2/async_star_await_pauses_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698