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

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

Issue 15813002: Issue 8801. Report problems for missing [] or []= (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for problem description, report only one problem Created 7 years, 7 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/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 d2e5fbeb5c5d442871d82fbf3e5e1d4a79c7b455..c60f2a9a54bc4e031d365938f132d66d70fff7a5 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
@@ -1893,6 +1893,21 @@ public class NonErrorResolverTest extends ResolverTestCase {
assertNoErrors();
}
+ public void test_undefinedOperator_index() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {",
+ " operator [](a) {}",
+ " operator []=(a, b) {}",
+ "}",
+ "f(A a) {",
+ " a[0];",
+ " a[0] = 1;",
+ "}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
public void test_undefinedOperator_tilde() throws Exception {
Source source = addSource(createSource(//
"const A = 3;",

Powered by Google App Engine
This is Rietveld 408576698