64 lines
966 B
Plaintext
Vendored
64 lines
966 B
Plaintext
Vendored
fun WithCompanion.test() {
|
|
val test1: <no name provided> = { // BLOCK
|
|
local class <no name provided> : WithCompanion {
|
|
constructor() /* primary */ {
|
|
TODO("IrDelegatingConstructorCall")
|
|
/* InstanceInitializerCall */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
<no name provided>()
|
|
}
|
|
val test2: <no name provided> = { // BLOCK
|
|
local class <no name provided> : WithCompanion {
|
|
constructor() /* primary */ {
|
|
TODO("IrDelegatingConstructorCall")
|
|
/* InstanceInitializerCall */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
<no name provided>()
|
|
}
|
|
}
|
|
|
|
open class WithCompanion {
|
|
constructor(a: Companion) /* primary */ {
|
|
TODO("IrDelegatingConstructorCall")
|
|
/* InstanceInitializerCall */
|
|
|
|
}
|
|
|
|
companion object Companion {
|
|
private constructor() /* primary */ {
|
|
TODO("IrDelegatingConstructorCall")
|
|
/* InstanceInitializerCall */
|
|
|
|
}
|
|
|
|
fun foo(): Companion {
|
|
return <this>
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|