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(); |
} |