test for unreproducable KT-2288

This commit is contained in:
Alex Tkachman
2012-08-03 12:03:36 +03:00
parent 0e4a8660fd
commit e8debde256
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,8 @@
public open class Test(): java.util.RandomAccess, Cloneable, java.io.Serializable
{
public override fun clone(): Test = Test() // Override 'clone()' with more precise type 'Test'
public override fun toString() = "OK"
}
fun box() = Test().clone().toString()