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

30 lines
645 B
Kotlin
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 */
}