swc/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly.ts

11 lines
241 B
TypeScript
Raw Normal View History

class C extends E { foo: string; } // error
class D extends C { bar: string; }
class E extends D { baz: number; }
class C2<T> extends E2<T> { foo: T; } // error
class D2<T> extends C2<T> { bar: T; }
class E2<T> extends D2<T> { baz: T; }