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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java

Issue 60913003: Issue 13787. It is OK to export same element twice. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
index 90db17bc09d1c6fa9ed676112d79fe0a57e8e7d9..68ca53a5cb63c691154583bbfbb405352d94eb8a 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
@@ -70,6 +70,19 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_ambiguousExport_sameDeclaration() throws Exception {
+ Source source = addSource(createSource(//
+ "library L;",
+ "export 'lib.dart';",
+ "export 'lib.dart';"));
+ addSource("/lib.dart", createSource(//
+ "library lib;",
+ "class N {}"));
+ resolve(source);
+ assertNoErrors(source);
+ verify(source);
+ }
+
public void test_argumentDefinitionTestNonParameter_formalParameter() throws Exception {
Source source = addSource(createSource(//
"f(var v) {",

Powered by Google App Engine
This is Rietveld 408576698