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

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

Issue 282063004: Fix for issue 14116 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean-up Created 6 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/CompileTimeErrorCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
index a655935dc1ead7fc5076e07ccc084bfdb975520c..89f6a9101c360f23936ff61b0e27bd4ff23a64e1 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
@@ -3711,6 +3711,18 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
+ public void test_recursiveInterfaceInheritance_mixin() throws Exception {
+ Source source = addSource(createSource(//
+ "class M1 = Object with M2;",
+ "class M2 = Object with M1;"));
+ resolve(source);
+ assertErrors(
+ source,
+ CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE,
+ CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE);
+ verify(source);
+ }
+
public void test_recursiveInterfaceInheritance_tail() throws Exception {
Source source = addSource(createSource(//
"abstract class A implements A {}",
@@ -3774,6 +3786,14 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
+ public void test_recursiveInterfaceInheritanceBaseCaseWith() throws Exception {
+ Source source = addSource(createSource(//
+ "class M = Object with M;"));
+ resolve(source);
+ assertErrors(source, CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH);
+ verify(source);
+ }
+
public void test_redirectGenerativeToMissingConstructor() throws Exception {
Source source = addSource(createSource(//
"class A {",
@@ -4157,26 +4177,6 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
- public void test_typeAliasCannotRereferenceItself_mixin_direct() throws Exception {
- Source source = addSource(createSource(//
- "class M = Object with M;"));
- resolve(source);
- assertErrors(source, CompileTimeErrorCode.TYPE_ALIAS_CANNOT_REFERENCE_ITSELF);
- verify(source);
- }
-
- public void test_typeAliasCannotRereferenceItself_mixin_indirect() throws Exception {
- Source source = addSource(createSource(//
- "class M1 = Object with M2;",
- "class M2 = Object with M1;"));
- resolve(source);
- assertErrors(
- source,
- CompileTimeErrorCode.TYPE_ALIAS_CANNOT_REFERENCE_ITSELF,
- CompileTimeErrorCode.TYPE_ALIAS_CANNOT_REFERENCE_ITSELF);
- verify(source);
- }
-
public void test_typeArgumentNotMatchingBounds_const() throws Exception {
Source source = addSource(createSource(//
"class A {}",

Powered by Google App Engine
This is Rietveld 408576698