| 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..e8577b654effb6306813e2c210ad3716484ccc48 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
|
| @@ -2286,6 +2286,26 @@ public class NonErrorResolverTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_undefinedMethod_functionExpression_callMethod() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "main() {",
|
| + " (() => null).call();",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + // A call to verify(source) fails as '.call()' isn't resolved.
|
| + }
|
| +
|
| + public void test_undefinedMethod_functionExpression_directCall() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "main() {",
|
| + " (() => null)();",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + // A call to verify(source) fails as '(() => null)()' isn't resolved.
|
| + }
|
| +
|
| public void test_undefinedMethod_noSuchMethod() throws Exception {
|
| Source source = addSource(createSource(//
|
| "class A {",
|
|
|