mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
396 B
TypeScript
20 lines
396 B
TypeScript
//// [tests/cases/conformance/interfaces/interfaceDeclarations/interfaceThatInheritsFromItself.ts] ////
|
|
|
|
//// [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]
|
|
"use strict";
|