Index: tests/compiler/dart2js_extra/lookup_map/subclass_lookup_map_test.dart |
diff --git a/tests/language/deferred_function_type_lib.dart b/tests/compiler/dart2js_extra/lookup_map/subclass_lookup_map_test.dart |
similarity index 52% |
copy from tests/language/deferred_function_type_lib.dart |
copy to tests/compiler/dart2js_extra/lookup_map/subclass_lookup_map_test.dart |
index 1f0e610aac59572ef332c77ebb2d2acdac5ab189..ebf74160243df6b9a64ead7a148946eb5333c156 100644 |
--- a/tests/language/deferred_function_type_lib.dart |
+++ b/tests/compiler/dart2js_extra/lookup_map/subclass_lookup_map_test.dart |
@@ -2,19 +2,18 @@ |
// 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 'package:lookup_map/lookup_map.dart'; |
import 'package:expect/expect.dart'; |
- |
-class T { |
- A foo(int x) {} |
-} |
- |
class A{} |
+class B{} |
+class S extends LookupMap { |
+ const S(list) : super(list); |
+} |
+const map = const S(const [ |
+ A, "the-text-for-A", |
+ B, "the-text-for-B", |
+]); |
-typedef A F(int x); |
- |
-use(x) => x; |
- |
-runTest() { |
- use(new A()); |
- Expect.isTrue(new T().foo is F); |
+main() { |
+ Expect.equals(map[A], "the-text-for-A"); |
} |