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

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

Issue 11419186: Allow not only 'Iterator iterator()' but also 'Iterator iterator' (field). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.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
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
index c4396fa2c0445ba72de0b0c9ce2621a42f963a61..5889eb01a8401a1eef866e51914f12c4bff69b88 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -404,40 +404,6 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
analyzeClass(classes.get("Bad"), 3);
}
- public void testForEachStatement() {
- Map<String, ClassNodeElement> invalidReturnType = loadSource(
- "class A {",
- " Iterator<int> iterator() {}",
- "}",
- "class B {",
- " main() { for (int i in new A()) {}}",
- "}");
- analyzeClasses(invalidReturnType);
- }
-
- public void testForEachStatement_Negative1() {
- Map<String, ClassNodeElement> fieldNotMethod = loadSource(
- "class A {",
- " int iterator;",
- "}",
- "class B {",
- " main() { for (int i in new A()) {}}",
- "}");
- analyzeClasses(fieldNotMethod, TypeErrorCode.FOR_IN_WITH_ITERATOR_FIELD);
- }
-
- public void testForEachStatement_Negative2() {
- Map<String, ClassNodeElement> invalidReturnType = loadSource(
- "class A {",
- " int iterator() {}",
- "}",
- "class B {",
- " main() { for (int i in new A()) {}}",
- "}");
- analyzeClasses(invalidReturnType, TypeErrorCode.FOR_IN_WITH_INVALID_ITERATOR_RETURN_TYPE);
- }
-
-
public void testForStatement() {
analyze("for (;true;) {}");
analyze("for (;null;) {}");
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698