13 lines
227 B
Kotlin
Vendored
13 lines
227 B
Kotlin
Vendored
// 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 |