| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java
|
| index b5e139447930605238fac63b2c7fd33542a4f506..28b2352c9dd5ff2971d754e44bf9a13fbdcf47f2 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java
|
| @@ -733,6 +733,23 @@ public class StaticTypeWarningCodeTest extends ResolverTestCase {
|
| assertErrors(source, StaticTypeWarningCode.UNDEFINED_METHOD);
|
| }
|
|
|
| + public void test_undefinedMethod_private() throws Exception {
|
| + addSource("/lib.dart", createSource(//
|
| + "library lib;",
|
| + "class A {",
|
| + " _foo() {}",
|
| + "}"));
|
| + Source source = addSource(createSource(//
|
| + "import 'lib.dart';",
|
| + "class B extends A {",
|
| + " test() {",
|
| + " _foo();",
|
| + " }",
|
| + "}"));
|
| + resolve(source);
|
| + assertErrors(source, StaticTypeWarningCode.UNDEFINED_METHOD);
|
| + }
|
| +
|
| public void test_undefinedOperator_indexBoth() throws Exception {
|
| Source source = addSource(createSource(//
|
| "class A {}",
|
|
|