Files
kotlin-fork/compiler/testData/codegen/box/classes/kt2288.kt
T

11 lines
357 B
Kotlin
Vendored

// TODO: Enable when JS backend supports Java class library
// IGNORE_BACKEND: JS
public open class Test(): java.util.RandomAccess, Cloneable, java.io.Serializable
{
public override fun clone(): Test = Test() // Override 'clone()' with more precise type 'Test'
public override fun toString() = "OK"
}
fun box() = Test().clone().toString()