set explicit receiver kind properly for calls
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// !CALL: foo
|
||||
// !EXPLICIT_RECEIVER_KIND: NO_EXPLICIT_RECEIVER
|
||||
// !THIS_OBJECT: A
|
||||
// !RECEIVER_ARGUMENT: B
|
||||
|
||||
class A {
|
||||
fun B.foo() {}
|
||||
}
|
||||
|
||||
trait B
|
||||
|
||||
fun bar(a: A, b: B) {
|
||||
with (a) {
|
||||
with (b) {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
|
||||
Reference in New Issue
Block a user