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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java

Issue 10533115: Fix for issue 1601 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | « compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java (revision 8551)
+++ compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java (working copy)
@@ -39,6 +39,14 @@
assertEquals(classBar, classFoo.getSupertype().getElement());
}
+ public void test_operator_indexAssign() {
+ Map<String, ClassNodeElement> source = loadSource(
+ "class A {",
+ "int operator []=(int index, var value) {}",
+ "}");
+ analyzeClasses(source, TypeErrorCode.OPERATOR_INDEX_ASSIGN_VOID_RETURN_TYPE);
+ }
+
public void testArrayLiteral() {
analyze("['x'];");
analyze("<String>['x'];");
« no previous file with comments | « compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698