JVM box tests for KT-24193

This commit is contained in:
Dmitry Petrov
2020-12-23 15:35:22 +03:00
committed by TeamCityServer
parent a8d848ccbd
commit ad8bed078f
5 changed files with 33 additions and 0 deletions
+13
View File
@@ -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