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

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

Issue 9270016: Issue 932. Checks for various named arguments cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks for comments, changes in tests. 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/type/FunctionTypeImplementation.java
diff --git a/compiler/java/com/google/dart/compiler/type/FunctionTypeImplementation.java b/compiler/java/com/google/dart/compiler/type/FunctionTypeImplementation.java
index 54d5c33d6c060f653986cb6c1ff16da5588c4596..86519a44277b932df8711339e84ae2de7ca93cf7 100644
--- a/compiler/java/com/google/dart/compiler/type/FunctionTypeImplementation.java
+++ b/compiler/java/com/google/dart/compiler/type/FunctionTypeImplementation.java
@@ -33,8 +33,8 @@ class FunctionTypeImplementation extends AbstractType implements FunctionType {
}
@Override
- public Type subst(List<? extends Type> arguments,
- List<? extends Type> parameters) {
+ public Type subst(List<Type> arguments,
+ List<Type> parameters) {
List<Type> substitutedParameterTypes = Types.subst(getParameterTypes(), arguments, parameters);
Map<String, Type> substitutedNamedParameterTypes = null;
if (!getNamedParameterTypes().isEmpty()) {
@@ -65,7 +65,7 @@ class FunctionTypeImplementation extends AbstractType implements FunctionType {
}
@Override
- public List<? extends Type> getParameterTypes() {
+ public List<Type> getParameterTypes() {
return parameterTypes;
}

Powered by Google App Engine
This is Rietveld 408576698