class C { x: T; get X(): T { return null; } foo(): T { return null; } } class D extends C { x: any; get X(): any { return null; } foo(): any { return 1; } static y: any; static get Y(): any { return null; } static bar(): any { return null; } } // if D is a valid class definition than E is now not safe tranisitively through C class E extends D { x: T; get X(): T { return ''; } // error foo(): T { return ''; // error } } var c: C; var d: D; var e: E; c = d; c = e; var r = c.foo(); // e.foo would return string