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

30 lines
645 B
Plaintext
Vendored

class A<T : Any?> {
private /* final field */ val contextReceiverField0: T
constructor(_context_receiver_0: T) /* primary */ {
super/*Any*/()
<this>.#contextReceiverField0 = _context_receiver_0
/* <init>() */
}
}
class B<P : Any?> {
private /* final field */ val contextReceiverField0: Collection<P>
constructor(_context_receiver_0: Collection<P>) /* primary */ {
super/*Any*/()
<this>.#contextReceiverField0 = _context_receiver_0
/* <init>() */
}
}
fun Int.foo() {
A<Int>(_context_receiver_0 = <this>) /*~> Unit */
}
fun Collection<Int>.bar() {
B<Int>(_context_receiver_0 = <this>) /*~> Unit */
}