Delegating to a super constructors, $delegate fields, $this field
This commit is contained in:
@@ -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) {}
|
||||
Reference in New Issue
Block a user