| 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 4b17ff094c75ae2c3a4259d40bd00bda1f90ca74..c5de0c573c4f8c477a2d5a305433aa58767a4aed 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| @@ -278,6 +278,16 @@ public class ResolverTest extends ResolverTestCase {
|
| ResolverErrorCode.CANNOT_RESOLVE_IMPLICIT_CALL_TO_SUPER_CONSTRUCTOR);
|
| }
|
|
|
| + public void testImplicitSuperCall_NonExistentSuper2() {
|
| + // Check that we generate an error if the implicit constructor would call a non-existent super.
|
| + resolveAndTest(Joiner.on("\n").join(
|
| + "class Object {}",
|
| + "class B { B.foo() {} }",
|
| + "class C extends B {}",
|
| + "class D { main() { new C(); } }"),
|
| + ResolverErrorCode.CANNOT_RESOLVE_IMPLICIT_CALL_TO_SUPER_CONSTRUCTOR);
|
| + }
|
| +
|
| public void testCyclicSupertype() {
|
|
|
| resolveAndTest(Joiner.on("\n").join(
|
|
|