| 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 70eb91266742f36b4ee1363ef8f6cbb7af1784cc..bd3653de379633d84622ca62116bae61f059f830 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
|
| @@ -1322,6 +1322,17 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_implicitThisReferenceInInitializer_field2() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "class A {",
|
| + " final x = 0;",
|
| + " final y = x;",
|
| + "}"));
|
| + resolve(source);
|
| + assertErrors(CompileTimeErrorCode.IMPLICIT_THIS_REFERENCE_IN_INITIALIZER);
|
| + verify(source);
|
| + }
|
| +
|
| public void test_implicitThisReferenceInInitializer_invocation() throws Exception {
|
| Source source = addSource(createSource(//
|
| "class A {",
|
|
|