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) { |