class Stub
{
}
interface IListener<T>
{
method( e : Event<T> ) : void;
}
class Event<T>
{
target : T;
}
class Listener implements IListener<Stub>
{
method( e : Event<boolean> ) : void
{
}
}
Is there any reason why TS compiler doesn't complain ? 'boolean' violates the interface contract. Stub type is specified in the implementation.