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

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

Issue 14406002: Supress the undefined-method warning when noSuchMethod() is declared in the targetType of the metho… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42f5296414212b19e27365e469f36d7cdccf5499..90fdb4bc954ead6b6a46b2b9949b4d1bb83d7885 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
@@ -617,6 +617,18 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_undefinedMethod_noSuchMethod() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {",
+ " noSuchMethod() {}",
+ "}",
+ "f() {",
+ " (new A()).someMethod();",
+ "}"));
+ resolve(source);
+ assertNoErrors();
+ }
+
public void test_undefinedOperator_tilde() throws Exception {
Source source = addSource(createSource(//
"const A = 3;",
« no previous file with comments | « editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698