Closed
Description
In order to implement in a simple manner mixins, it could be interesting to provide a kind of rest mechanism for instances variables (and methods).
Imagine the following syntax :
class OtherClass {
dummy1 : string;
dummy2 : number;
dummy() {
}
}
class MyGenericClass <aClass> {
...: aClass;
}
class MyTerminalClass extends MyGenericClass<OtherClass> {
aMethod() {
let toto = this.dummy1;
let titi = this.dummy2;
this.dummy();
}
}
This could be a nice way to define and use mixins...
We may also combine mixins like this :
... : OtherClass & OtherOtherClass ;