JVM box tests for KT-24193
This commit is contained in:
committed by
TeamCityServer
parent
a8d848ccbd
commit
ad8bed078f
@@ -0,0 +1,13 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user