set explicit receiver kind properly for calls
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// !CALL: invoke
|
||||
// !EXPLICIT_RECEIVER_KIND: THIS_OBJECT
|
||||
// !THIS_OBJECT: f
|
||||
// !RECEIVER_ARGUMENT: Int
|
||||
|
||||
class Foo() {
|
||||
fun Int.invoke() {}
|
||||
}
|
||||
|
||||
fun bar(f: Foo, i: Int) {
|
||||
with (i) {
|
||||
f()
|
||||
}
|
||||
}
|
||||
|
||||
fun <T, R> with(receiver: T, f: T.() -> R) : R = throw Exception()
|
||||
Reference in New Issue
Block a user