Index: tests/language/export_not_shadowed_by_prefix_test.dart |
diff --git a/tests/language/type_variable_closure3_test.dart b/tests/language/export_not_shadowed_by_prefix_test.dart |
similarity index 57% |
copy from tests/language/type_variable_closure3_test.dart |
copy to tests/language/export_not_shadowed_by_prefix_test.dart |
index ecb1c39e82ed81cc01dd061dca2b5070890f985b..3af1b48652a40b2794bb5002c3830b710ccaf4c2 100644 |
--- a/tests/language/type_variable_closure3_test.dart |
+++ b/tests/language/export_not_shadowed_by_prefix_test.dart |
@@ -2,17 +2,13 @@ |
// 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:expect/expect.dart"; |
- |
-class A<T> {} |
+// Verify that import prefixes within an imported library don't shadow |
+// names re-exported by that library. |
-class C<T> { |
- a() { |
- return () => new A<T>(); |
- } |
-} |
+import "package:expect/expect.dart"; |
+import "export_not_shadowed_by_prefix_helper.dart"; |
main() { |
- Expect.isTrue(new C<int>().a()() is A<int>); |
- Expect.isFalse(new C<int>().a()() is A<String>); |
+ f(); |
+ Expect.isTrue(f_called); |
} |