Files
kotlin/compiler/testData/codegen/box/classes/kt508.kt
2015-10-19 15:24:45 +03:00

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"
}