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

Unified Diff: tests/language/async_backwards_compatibility_1_test.dart

Issue 423213005: Reland transformation of async functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: tests/language/async_backwards_compatibility_1_test.dart
diff --git a/tests/language/switch_case_static_const_test.dart b/tests/language/async_backwards_compatibility_1_test.dart
similarity index 56%
copy from tests/language/switch_case_static_const_test.dart
copy to tests/language/async_backwards_compatibility_1_test.dart
index e15a9f46fc89414b7acb23506f4c2687cccfa36e..93908797af9400f0cdc751626158e1f4e39f6af5 100644
--- a/tests/language/switch_case_static_const_test.dart
+++ b/tests/language/async_backwards_compatibility_1_test.dart
@@ -2,23 +2,17 @@
// 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 'async_helper_lib.dart' as async;
+
class A {
- static const S = 'A.S';
+ async.async get async => null;
}
-const S = 'S';
-
-foo(var p) {
- switch (p) {
- case S:
- break;
- case A.S:
- break;
- case 'abc':
- break;
- }
-}
+async.async topLevel() => null;
main() {
- foo('p');
+ var a = new A();
+ var b = a.async;
+ var c = topLevel();
}

Powered by Google App Engine
This is Rietveld 408576698