Assorted fixes to inheritance/delegation codegen
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class X(val x : Int) {}
|
||||
class Y(val y : Int) {}
|
||||
|
||||
class Point(x : Int, y : Int) : X(x), Y(y) {}
|
||||
class Point(x : Int, y : Int) : X(x) , Y(y) {}
|
||||
|
||||
class Abstract {}
|
||||
|
||||
@@ -18,10 +18,10 @@ fun box() : String {
|
||||
if (p.x + p.y != 239) return "FAIL #3"
|
||||
|
||||
val y = new Y(-1)
|
||||
/*
|
||||
|
||||
val p1 = new P1(240, y)
|
||||
if (p1.x + p1.y != 239) return "FAIL #4"
|
||||
|
||||
val p2 = new P2(240, y)
|
||||
if (p2.x + p2.y != 239) return "FAIL #5"
|
||||
|
||||
@@ -30,6 +30,6 @@ fun box() : String {
|
||||
|
||||
val p4 = new P4(240, y)
|
||||
if (p4.x + p4.y != 239) return "FAIL #7"
|
||||
|
||||
*/
|
||||
"OK"
|
||||
}
|
||||
Reference in New Issue
Block a user