17 lines
274 B
JavaScript
17 lines
274 B
JavaScript
|
//// [interfaceThatInheritsFromItself.ts]
|
||
|
interface Foo extends Foo { // error
|
||
|
}
|
||
|
|
||
|
interface Foo2<T> extends Foo2<T> { // error
|
||
|
}
|
||
|
|
||
|
interface Foo3<T> extends Foo3<string> { // error
|
||
|
}
|
||
|
|
||
|
interface Bar implements Bar { // error
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
//// [interfaceThatInheritsFromItself.js]
|