10 lines
267 B
Kotlin
Vendored
10 lines
267 B
Kotlin
Vendored
fun WithCompanion.test() {
|
|
val test1 = object : WithCompanion(this) {}
|
|
val test2 = object : WithCompanion(this.foo()) {}
|
|
}
|
|
|
|
open class WithCompanion(a: WithCompanion.Companion) {
|
|
companion object {
|
|
fun foo(): WithCompanion.Companion = this
|
|
}
|
|
} |