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

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

Issue 9289029: Added runtime type checking to the elements of list and map literals in dartc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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: 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 35cdffa638426926047300ad4541a49b1220888f..2fe1be77c352f588a54830b24744171dadb937be 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -1355,8 +1355,8 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
" factory A() {}",
"}");
analyzeClasses(source);
- // analyze("{ var val1 = new IA<Foo>(); }");
- // analyze("{ var val1 = new IA<Bar>(); }");
+ analyze("{ var val1 = new IA<Foo>(); }");
+ analyze("{ var val1 = new IA<Bar>(); }");
analyzeFail("{ var val1 = new IA<String>(); }",TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
}
}

Powered by Google App Engine
This is Rietveld 408576698