Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java

Issue 26817006: Don't resolve private inherited members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {}",

Powered by Google App Engine
This is Rietveld 408576698