Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt.txt
T
2023-03-23 16:23:09 +00:00

32 lines
479 B
Kotlin
Vendored

class Context {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun foo(): Int {
return 1
}
}
class Test {
private /* final field */ val contextReceiverField0: Context
constructor($context_receiver_0: Context) /* primary */ {
super/*Any*/()
<this>.#contextReceiverField0 = $context_receiver_0
/* <init>() */
}
fun foo(): Int {
return 2
}
fun bar() {
val x: Int = <this>.#contextReceiverField0.foo()
}
}