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

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

Issue 15855005: Implementation of CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE error code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase with bleeding_edge Created 7 years, 7 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: 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 165e78025dcc5ecabd4825623db79ebabca0cb07..a40d48ea79c18b4e44e18ea8cbe9f203f2135b35 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
@@ -13,6 +13,7 @@
*/
package com.google.dart.engine.resolver;
+import com.google.dart.engine.error.CompileTimeErrorCode;
import com.google.dart.engine.source.Source;
public class NonErrorResolverTest extends ResolverTestCase {
@@ -1716,6 +1717,15 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_recursiveInterfaceInheritance() throws Exception {
+ Source source = addSource(createSource(//
+ "abstract class A implements A {}",
+ "class B implements A {}"));
+ resolve(source);
+ assertErrors(CompileTimeErrorCode.IMPLEMENTS_SELF);
+ verify(source);
+ }
+
public void test_redirectToInvalidFunctionType() throws Exception {
Source source = addSource(createSource(//
"class A implements B {",

Powered by Google App Engine
This is Rietveld 408576698