commented test case for KT-285
This commit is contained in:
@@ -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 {
|
public void testKt500 () throws Exception {
|
||||||
blackBoxFile("regressions/kt500.jet");
|
blackBoxFile("regressions/kt500.jet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testKt285 () throws Exception {
|
||||||
|
// blackBoxFile("regressions/kt285.jet");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user