| 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 75973d5fa71b867850ea0e7ce3ce34cc4a56092d..1bbe2ad53f16168fe95002569cf667ef29f8ff8d 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
|
| @@ -1292,6 +1292,31 @@ public class NonErrorResolverTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_invocationOfNonFunction_localVariable_dynamic() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "f() {}",
|
| + "main() {",
|
| + " var v = f;",
|
| + " v();",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + verify(source);
|
| + }
|
| +
|
| + public void test_invocationOfNonFunction_localVariable_dynamic2() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "f() {}",
|
| + "main() {",
|
| + " var v = f;",
|
| + " v = 1;",
|
| + " v();",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + verify(source);
|
| + }
|
| +
|
| public void test_invocationOfNonFunction_Object() throws Exception {
|
| Source source = addSource(createSource(//
|
| "main() {",
|
|
|