blob: 993bd75173f063b0f5ecbce1ec7cfeb09d622e48 [file]
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>()
}
}