Delegating to a super constructors, $delegate fields, $this field

This commit is contained in:
Maxim Shafirov
2011-04-28 19:38:14 +04:00
parent 6574cd98ed
commit bca39bf21f
10 changed files with 199 additions and 64 deletions
+11
View File
@@ -0,0 +1,11 @@
class X(x : Int) {}
class Y(y : Int) {}
class Point(x : Int, y : Int) : X(x), Y(y) {}
class Abstract {}
class P1(x : Int, y : Y) : Abstract, X(x), Y by y {}
class P2(x : Int, y : Y) : X(x), Abstract, Y by y {}
class P3(x : Int, y : Y) : X(x), Y by y, Abstract {}
class P4(x : Int, y : Y) : Y by y, Abstract, X(x) {}