Chromium Code Reviews| Index: compiler/javatests/com/google/dart/compiler/resolver/CompileTimeConstantTest.java |
| diff --git a/compiler/javatests/com/google/dart/compiler/resolver/CompileTimeConstantTest.java b/compiler/javatests/com/google/dart/compiler/resolver/CompileTimeConstantTest.java |
| index ae86c276659c05c5ae5b41d87422f1c66106ba9e..34bfc17bc3b0098747d878882e091fcc84893342 100644 |
| --- a/compiler/javatests/com/google/dart/compiler/resolver/CompileTimeConstantTest.java |
| +++ b/compiler/javatests/com/google/dart/compiler/resolver/CompileTimeConstantTest.java |
| @@ -109,6 +109,22 @@ public class CompileTimeConstantTest extends ResolverTestCase { |
| /** |
| * <p> |
| + * http://code.google.com/p/dart/issues/detail?id=5987 |
| + */ |
| + public void test_referenceConstInstance_formConstStatic() throws Exception { |
|
Brian Wilkerson
2012/11/01 13:53:28
nit: "form" --> "from"
|
| + resolveAndTestCtConstExpectErrors( |
| + Joiner.on("\n").join( |
| + "// filler filler filler filler filler filler filler filler filler filler", |
| + "class Object {}", |
| + "class A {", |
| + " const x = 499;", |
| + " static const bar = x;", |
| + "}"), |
| + errEx(ResolverErrorCode.NOT_A_STATIC_FIELD, 5, 22, 1)); |
| + } |
| + |
| + /** |
| + * <p> |
| * http://code.google.com/p/dart/issues/detail?id=1655 |
| */ |
| public void test_constConstructor_nonConstInitializerValue() { |