12 lines
204 B
Plaintext
12 lines
204 B
Plaintext
type t {}
|
|
|
|
class c() : t { init int x; export t; }
|
|
|
|
mixin mx() : t at t with int x, int y {
|
|
init int z;
|
|
super(x = 1, y = 2);
|
|
export t;
|
|
}
|
|
|
|
subclass c2 = mx(c); // should fail thanks to y = 2 above.
|