commented test case for KT-285

This commit is contained in:
Alex Tkachman
2011-11-18 08:20:45 +02:00
parent beb2b50dd2
commit c896206284
2 changed files with 21 additions and 0 deletions
@@ -0,0 +1,17 @@
class SimpleClass() : java.lang.Object() {
fun foo() : String = "610" + toString ()
override fun toString() : String { return foo() }
}
class ComplexClass() : SimpleClass by delegate {
val delegate = SimpleClass()
override fun toString() : String { return foo() + " complex" }
}
fun box() : String {
val c = SimpleClass()
val d = ComplexClass()
System.out?.println(d)
return c.foo()
}
@@ -222,4 +222,8 @@ public class ClassGenTest extends CodegenTestCase {
public void testKt500 () throws Exception {
blackBoxFile("regressions/kt500.jet");
}
public void testKt285 () throws Exception {
// blackBoxFile("regressions/kt285.jet");
}
}