12 lines
319 B
Plaintext
12 lines
319 B
Plaintext
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) {}
|