Added tests for argument mapping

This commit is contained in:
Svetlana Isakova
2014-05-05 11:27:12 +04:00
parent 8dc932fc50
commit 857aa76cff
23 changed files with 451 additions and 9 deletions
@@ -0,0 +1,12 @@
// !ONLY_ARGUMENTS
// !CALL: foo
// !ARG_1: ArgumentMatch(t : Int, SUCCESS)
// !ARG_2: ArgumentMatch(f : (Int) -> String, SUCCESS)
// !ARG_3: ArgumentMatch(g : (String) -> Int, SUCCESS)
fun <T, S, R> foo(t: T, f: (T) -> S, g: (S) -> R) {}
fun test() {
foo(1, { x -> "$x"}, { y -> y.length })
}