Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt.txt
T

32 lines
479 B
Plaintext
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()
}
}