12 lines
145 B
Kotlin
Vendored
12 lines
145 B
Kotlin
Vendored
interface Base {
|
|
val x: Int
|
|
}
|
|
|
|
open class Impl(override val x: Int) : Base {
|
|
init {
|
|
if (this.x != 0) foo()
|
|
}
|
|
}
|
|
|
|
fun foo() {}
|