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()
@@ -491,4 +491,11 @@ public class ClassGenTest extends CodegenTestCase {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxMultiFile("regressions/kt2482.kt");
}
public void testKt2288() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
loadFile("regressions/kt2288.kt");
//System.out.println(generateToText());
blackBox();
}
}