| Index: compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java b/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
|
| index 9333042cf508734ec25c03b00513f886e1862f25..5e171c63f46026f3723b4e4f6a94b8fcd5f561c4 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
|
| @@ -1181,4 +1181,23 @@ public class NegativeResolverTest extends CompilerTestCase {
|
| ""),
|
| errEx(ResolverErrorCode.ILLEGAL_FIELD_ACCESS_FROM_STATIC, 5, 12, 5));
|
| }
|
| +
|
| + /**
|
| + * <p>
|
| + * http://code.google.com/p/dart/issues/detail?id=7633
|
| + */
|
| + public void test_accessInstanceField_fromConstFactory() throws Exception {
|
| + checkSourceErrors(
|
| + makeCode(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "class A {",
|
| + " var foo;",
|
| + " factory A() {",
|
| + " var v = foo;",
|
| + " return null;",
|
| + " }",
|
| + "}",
|
| + ""),
|
| + errEx(ResolverErrorCode.ILLEGAL_FIELD_ACCESS_FROM_FACTORY, 5, 13, 3));
|
| + }
|
| }
|
|
|