mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
403 B
TypeScript
18 lines
403 B
TypeScript
//// [tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItself.ts] ////
|
|
|
|
//// [classExtendsItself.ts]
|
|
class C extends C { } // error
|
|
|
|
class D<T> extends D<T> { } // error
|
|
|
|
class E<T> extends E<string> { } // error
|
|
|
|
//// [classExtendsItself.js]
|
|
"use strict";
|
|
class C extends C {
|
|
} // error
|
|
class D extends D {
|
|
} // error
|
|
class E extends E {
|
|
} // error
|