Refactoring: AbstractResolvedCallsTest
Render resolved call to a separate file
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
// !ONLY_ARGUMENTS
|
||||
// !CALL: foo
|
||||
// !ARG_1: B() = ArgumentMatch(b : B, SUCCESS)
|
||||
// !ARG_2: A() = ArgumentUnmapped
|
||||
|
||||
class A {}
|
||||
class B {}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// !CALL: foo
|
||||
|
||||
class A {}
|
||||
class B {}
|
||||
|
||||
fun foo(a: A, b: B) {}
|
||||
|
||||
fun bar() {
|
||||
foo(b = B(), A())
|
||||
}
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Explicit receiver kind = NO_EXPLICIT_RECEIVER
|
||||
This object = NO_RECEIVER
|
||||
Receiver argument = NO_RECEIVER
|
||||
|
||||
Value arguments mapping:
|
||||
|
||||
SUCCESS b : B = B()
|
||||
ARGUMENT UNMAPPED: A()
|
||||
@@ -1,7 +1,4 @@
|
||||
// !ONLY_ARGUMENTS
|
||||
// !CALL: foo
|
||||
// !ARG_1: B() = ArgumentMatch(b : B, SUCCESS)
|
||||
// !ARG_2: A() = ArgumentMatch(a : A, SUCCESS)
|
||||
|
||||
class A {}
|
||||
class B {}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// !CALL: foo
|
||||
|
||||
class A {}
|
||||
class B {}
|
||||
|
||||
fun foo(a: A, b: B) {}
|
||||
|
||||
fun bar() {
|
||||
foo(b = B(), a = A())
|
||||
}
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Explicit receiver kind = NO_EXPLICIT_RECEIVER
|
||||
This object = NO_RECEIVER
|
||||
Receiver argument = NO_RECEIVER
|
||||
|
||||
Value arguments mapping:
|
||||
|
||||
SUCCESS b : B = B()
|
||||
SUCCESS a : A = A()
|
||||
Reference in New Issue
Block a user