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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java

Issue 9235015: Update map literal syntax to expect only one type parameter (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/java/com/google/dart/compiler/resolver/ResolutionContext.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
index c0a8e8dc4818ad9c131e96593c94d5c2eb9f6518..e0af43fccd8e4807929dd4fca70db05a69fffb74 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
@@ -278,7 +278,7 @@ public class ResolutionContext implements ResolutionErrorListener {
errorCode instanceof ResolverErrorCode
? ResolverErrorCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS
: TypeErrorCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS;
- onError(node, wrongNumberErrorCode, element.getType(), typeParameters.size());
+ onError(node, wrongNumberErrorCode, element.getType(), typeArgumentNodes.size(), typeParameters.size());
}
int index = 0;
if (typeArgumentNodes != null) {

Powered by Google App Engine
This is Rietveld 408576698