Conside the following simple interface and a class:
interface ITest{
id :string;
}
class SuperClass<T extends ITest>{
Start(){
var item=<ITest>{};
this.Do(item);
}
Do(item: T){
alert(item);
}
}
The line with this.Do(item) shows the error: Argument of type ITest is not assignable to type T. Why?