Assorted fixes to inheritance/delegation codegen

This commit is contained in:
Maxim Shafirov
2011-05-02 13:13:27 +04:00
parent 42a36e0cf6
commit 1261d87229
7 changed files with 234 additions and 95 deletions
+3 -3
View File
@@ -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"
}