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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/FunctionTypeTest.java

Issue 10828355: Issue 4289. Test that arguments are bound to positional, optional and named parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Prepare for making optional parameter not named 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
Index: compiler/javatests/com/google/dart/compiler/type/FunctionTypeTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/FunctionTypeTest.java b/compiler/javatests/com/google/dart/compiler/type/FunctionTypeTest.java
index 5e893b917eb4d1bd635526ea597c554fb7e4cc0d..25d73f1e95bceb76aabfe2ca19bae95f42111076 100644
--- a/compiler/javatests/com/google/dart/compiler/type/FunctionTypeTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/FunctionTypeTest.java
@@ -79,10 +79,11 @@ public class FunctionTypeTest extends TypeTestCase {
assertEquals(stringAndIntToMap, stringAndIntToMapS.subst(args, vars));
FunctionType oAndNamedToO = FunctionTypeImplementation.of(function, Arrays.<Type>asList(o),
+ null,
named(itype(string), "arg"), null, o);
assertEquals(objectAndNamedStringToObject, oAndNamedToO.subst(args, vars));
- Type osToO = FunctionTypeImplementation.of(function, Arrays.<Type>asList(), null, o, o);
+ Type osToO = FunctionTypeImplementation.of(function, Arrays.<Type>asList(), null, null, o, o);
assertEquals(objectsToObject, osToO.subst(args, vars));
}

Powered by Google App Engine
This is Rietveld 408576698