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

Unified Diff: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java

Issue 10878088: Issue 4719. Mark inferred List/Map literal types as inferred. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | compiler/javatests/com/google/dart/compiler/CompilerTestCase.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
index 1ca4321b03ecedd0f93709bdb6a9628d0c1ed46b..4b70e0b99c17830c22a4724335ac3c407ba53b8a 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -1865,7 +1865,8 @@ public class TypeAnalyzer implements DartCompilationPhase {
}
Type valueType = types.intersection(valueTypes);
valueType = Types.makeInferred(valueType);
- return typeProvider.getMapLiteralType(stringType, valueType);
+ InterfaceType mapLiteralType = typeProvider.getMapLiteralType(stringType, valueType);
+ return Types.makeInferred(mapLiteralType);
}
return type;
@@ -2715,7 +2716,8 @@ public class TypeAnalyzer implements DartCompilationPhase {
}
Type elementType = types.intersection(elementTypes);
elementType = Types.makeInferred(elementType);
- return typeProvider.getArrayLiteralType(elementType);
+ InterfaceType arrayLiteralType = typeProvider.getArrayLiteralType(elementType);
+ return Types.makeInferred(arrayLiteralType);
}
// done
return interfaceType;
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/CompilerTestCase.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698