| 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 {}",
|
|
|