| 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 a70d1783385785022ebe4495bacc17769eec8890..8d727a3a4c26a8ae71ae420e338bdf1abd2ca528 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
|
| @@ -209,15 +209,6 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| - public void fail_redirectToNonConstConstructor() throws Exception {
|
| - Source source = addSource(createSource(//
|
| - // TODO
|
| - ));
|
| - resolve(source);
|
| - assertErrors(CompileTimeErrorCode.REDIRECT_TO_NON_CONST_CONSTRUCTOR);
|
| - verify(source);
|
| - }
|
| -
|
| public void fail_reservedWordAsIdentifier() throws Exception {
|
| Source source = addSource(createSource(//
|
| "int class = 2;"));
|
| @@ -2540,6 +2531,17 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_redirectToNonConstConstructor() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "class A {",
|
| + " A.a() {}",
|
| + " const factory A.b() = A.a;",
|
| + "}"));
|
| + resolve(source);
|
| + assertErrors(CompileTimeErrorCode.REDIRECT_TO_NON_CONST_CONSTRUCTOR);
|
| + verify(source);
|
| + }
|
| +
|
| public void test_referenceToDeclaredVariableInInitializer_closure() throws Exception {
|
| Source source = addSource(createSource(//
|
| "f() {",
|
|
|