56 lines
1.0 KiB
Kotlin
Vendored
56 lines
1.0 KiB
Kotlin
Vendored
class A<T : Any?> {
|
|
constructor(a: T) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val a: T
|
|
field = a
|
|
get
|
|
|
|
}
|
|
|
|
class B {
|
|
constructor(b: Any) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val b: Any
|
|
field = b
|
|
get
|
|
|
|
}
|
|
|
|
class C {
|
|
constructor(c: Any) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val c: Any
|
|
field = c
|
|
get
|
|
|
|
}
|
|
|
|
fun f($context_receiver_0: A<Int>, $context_receiver_1: A<String>, $context_receiver_2: B) {
|
|
$context_receiver_0.<get-a>().toFloat() /*~> Unit */
|
|
$context_receiver_1.<get-a>().<get-length>() /*~> Unit */
|
|
$context_receiver_2.<get-b>() /*~> Unit */
|
|
}
|
|
|
|
val C.p: Int
|
|
get($context_receiver_0: A<Int>, $context_receiver_1: A<String>, $context_receiver_2: B): Int {
|
|
$context_receiver_0.<get-a>().toFloat() /*~> Unit */
|
|
$context_receiver_1.<get-a>().<get-length>() /*~> Unit */
|
|
$context_receiver_2.<get-b>() /*~> Unit */
|
|
<this>.<get-c>() /*~> Unit */
|
|
<this>.<get-c>() /*~> Unit */
|
|
<this>.<get-c>() /*~> Unit */
|
|
return 1
|
|
}
|