| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| index 37ac1aa335ff8763fb3993ea8b6d01f4308117c0..8d60a9954517226e1cc8ad1b088a2b4087cc001e 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| @@ -402,6 +402,30 @@ public class NonErrorResolverTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_constEval_propertyExtraction_fieldStatic_targetType() throws Exception {
|
| + addSource("/math.dart", createSource(//
|
| + "library math;",
|
| + "const PI = 3.14;"));
|
| + Source source = addSource(createSource(//
|
| + "import 'math.dart' as math;",
|
| + "const C = math.PI;"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + verify(source);
|
| + }
|
| +
|
| + public void test_constEval_propertyExtraction_methodStatic_targetType() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "class A {",
|
| + " const A();",
|
| + " static m() {}",
|
| + "}",
|
| + "const C = A.m;"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + verify(source);
|
| + }
|
| +
|
| public void test_constEvalTypeBoolNumString_equal() throws Exception {
|
| Source source = addSource(createSource(//
|
| "class A {",
|
|
|