Files
2024-02-16 10:19:38 +00:00

46 lines
652 B
Kotlin
Vendored

class Outer<T : Any?> {
val x: T
field = x
get
open inner class Inner {
val y: Int
field = y
get
constructor(y: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
constructor(x: T) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
fun Outer<Int>.test(): Inner<Int> {
return { // BLOCK
local class <no name provided> : Inner<Int> {
val xx: Int
field = <this>.<get-x>().plus(other = <this>.<get-y>())
get
constructor() /* primary */ {
<this>.super/*Inner*/(y = 42)
/* <init>() */
}
}
<no name provided>()
}
}