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

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

Issue 13530003: Deprecate Collection class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file. Created 7 years, 9 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 | « no previous file | sdk/lib/async/collection_sink.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
index 1e4e2815215381b87281c05e50ad9d90cc88a72d..2d614f39d9f5188183c8a5886d3d6b040f7e7711 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
@@ -2005,8 +2005,12 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
public void test_conditionalExpressionType_genericInterface() throws Exception {
AnalyzeLibraryResult result = analyzeLibrary(
"// filler filler filler filler filler filler filler filler filler filler",
+ "class A<T> { const A(); }",
+ "class B<T> extends A<T> { const B(); }",
+ "class C<T> implements B<T> { const C(); }",
+ "class D<T> implements B<T> { const D(); }",
"main() {",
- " Collection<int> test = true ? new Set<int>() : const [null];",
+ " B<int> test = true ? new C<int>() : const D<int>();",
"}",
"");
assertErrors(result.getErrors());
@@ -3275,7 +3279,7 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
* Sometimes inferred type is too generic - such as "Object" or "Collection", so there are no
* reason to reports problems.
*/
- public void test_typesPropagation_dontWant_ifTooGeneric() throws Exception {
+ public void deprecatedCollection_test_typesPropagation_dontWant_ifTooGeneric() throws Exception {
compilerConfiguration = new DefaultCompilerConfiguration(new CompilerOptions() {
@Override
public boolean typeChecksForInferredTypes() {
« no previous file with comments | « no previous file | sdk/lib/async/collection_sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698