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,13 @@
// !ONLY_ARGUMENTS
// !CALL: foo
// !ARG_1: B() = ArgumentMatch(b : B, SUCCESS)
// !ARG_2: A() = ArgumentUnmapped
class A {}
class B {}
fun foo(a: A, b: B) {}
fun bar() {
foo(b = B(), A())
}
@@ -0,0 +1,13 @@
// !ONLY_ARGUMENTS
// !CALL: foo
// !ARG_1: B() = ArgumentMatch(b : B, SUCCESS)
// !ARG_2: A() = ArgumentMatch(a : A, SUCCESS)
class A {}
class B {}
fun foo(a: A, b: B) {}
fun bar() {
foo(b = B(), a = A())
}