mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
18 lines
378 B
Kotlin
Vendored
18 lines
378 B
Kotlin
Vendored
package mult_constructors_3_bug
|
|
|
|
public open class Identifier() {
|
|
private var myNullable : Boolean = true
|
|
companion object {
|
|
open public fun init(isNullable : Boolean) : Identifier {
|
|
val id = Identifier()
|
|
id.myNullable = isNullable
|
|
return id
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
Identifier.init(true)
|
|
return "OK"
|
|
}
|