| 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 5ce4d3691657b0bc64b0cee307bb1852e9d23007..c805912292fa821c0f636b8b515d0a98ae216503 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| @@ -217,6 +217,19 @@ public class ResolverTest extends ResolverTestCase {
|
| */
|
| }
|
|
|
| + public void testImplicitDefaultConstructor_OnInterfaceWithoutFactory() {
|
| + // Check that the implicit constructor is resolved correctly
|
| + resolveAndTest(Joiner.on("\n").join(
|
| + "class Object {}",
|
| + "interface B {}",
|
| + "class C { main() { new B(); } }"),
|
| + ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR);
|
| +
|
| + /*
|
| + * We should check for signature mismatch but that is a TypeAnalyzer issue.
|
| + */
|
| + }
|
| +
|
| public void testImplicitDefaultConstructor_ThroughFactories() {
|
| // Check that we generate implicit constructors through factories also.
|
| resolveAndTest(Joiner.on("\n").join(
|
|
|