blob: 6bf7742329fd00ac05905c37a734e1fad8613b1b [file]
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
interface Foo : Cloneable
class Bar(val test: String) : Foo {
fun createClone(): Bar {
return this.clone() as Bar
}
}
fun box() =
Bar("OK").createClone().test