Skip to content

Commit

Permalink
test for unreproducable KT-2288
Browse files Browse the repository at this point in the history
  • Loading branch information
alextkachman committed Aug 3, 2012
1 parent 0e4a866 commit e8debde
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compiler/testData/codegen/regressions/kt2288.kt
Original file line number Diff line number Diff line change
@@ -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()
7 changes: 7 additions & 0 deletions compiler/tests/org/jetbrains/jet/codegen/ClassGenTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -491,4 +491,11 @@ public void testKt2482() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxMultiFile("regressions/kt2482.kt");
}

public void testKt2288() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
loadFile("regressions/kt2288.kt");
//System.out.println(generateToText());
blackBox();
}
}

0 comments on commit e8debde

Please sign in to comment.