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

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

Issue 8956047: This adds a unit test to show the type checking functionality missing in dartc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated test, $chk() can sneak in another way Created 9 years 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 d1ce2f33d53b87b2f2cf2368b28463ed6600ffcb..74f5475e144b85ce9fa2a13cc826608c4e420619 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
@@ -232,7 +232,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());
+ onError(node, wrongNumberErrorCode, element.getType(), typeParameters.size());
}
int index = 0;
if (typeArgumentNodes != null) {

Powered by Google App Engine
This is Rietveld 408576698