Files
kotlin-fork/compiler/testData/codegen/box/bridges/kt24193.kt
T
2020-12-23 21:50:09 +03:00

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