Files
kotlin-fork/compiler/testData/codegen/box/classes/kt2288.kt
T
2018-06-09 19:15:38 +03:00

12 lines
390 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// TODO: Enable when JS backend supports Java class library
// IGNORE_BACKEND: JS, NATIVE
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()