mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
17 lines
553 B
TypeScript
17 lines
553 B
TypeScript
// @Filename: classExtendsItselfIndirectly_file1.ts
|
|
class C extends E { foo: string; } // error
|
|
|
|
// @Filename: classExtendsItselfIndirectly_file2.ts
|
|
class D extends C { bar: string; }
|
|
|
|
// @Filename: classExtendsItselfIndirectly_file3.ts
|
|
class E extends D { baz: number; }
|
|
|
|
// @Filename: classExtendsItselfIndirectly_file4.ts
|
|
class C2<T> extends E2<T> { foo: T; } // error
|
|
|
|
// @Filename: classExtendsItselfIndirectly_file5.ts
|
|
class D2<T> extends C2<T> { bar: T; }
|
|
|
|
// @Filename: classExtendsItselfIndirectly_file6.ts
|
|
class E2<T> extends D2<T> { baz: T; } |