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

Unified Diff: tests/language/export_not_shadowed_by_prefix_test.dart

Issue 1585753002: Verify that import prefixes don't shadow exports. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/export_not_shadowed_by_prefix_helper2.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « tests/language/export_not_shadowed_by_prefix_helper2.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698