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

Unified Diff: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java

Issue 10627017: Removes compile-time error from implementing the same interface more than once (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
index dd4585789c0a87e184b4cf15d326912748b88645..53e63240a7837f355333e2931a3d93ccf81ab957 100644
--- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
+++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
@@ -173,6 +173,8 @@ public class ResolverTest extends ResolverTestCase {
}
public void testDuplicatedInterfaces() {
+ // The analyzer used to catch inheriting from two different variations of the same interface
+ // but the spec mentions no such error
resolveAndTest(Joiner.on("\n").join(
"class Object {}",
"interface int {}",
@@ -181,8 +183,7 @@ public class ResolverTest extends ResolverTestCase {
"}",
"class A extends C implements I<int> {}",
"class B extends C implements I<bool> {}",
- "class C implements I<int> {}"),
- ResolverErrorCode.DUPLICATED_INTERFACE);
+ "class C implements I<int> {}"));
}
public void testImplicitDefaultConstructor() {

Powered by Google App Engine
This is Rietveld 408576698