mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
//// [tests/cases/conformance/interfaces/interfaceDeclarations/interfaceThatInheritsFromItself.ts] ////
|
|
|
|
=== interfaceThatInheritsFromItself.ts ===
|
|
interface Foo extends Foo { // error
|
|
>Foo : Symbol(Foo, Decl(interfaceThatInheritsFromItself.ts, 0, 0))
|
|
>Foo : Symbol(Foo, Decl(interfaceThatInheritsFromItself.ts, 0, 0))
|
|
}
|
|
|
|
interface Foo2<T> extends Foo2<T> { // error
|
|
>Foo2 : Symbol(Foo2, Decl(interfaceThatInheritsFromItself.ts, 1, 1))
|
|
>T : Symbol(T, Decl(interfaceThatInheritsFromItself.ts, 3, 15))
|
|
>Foo2 : Symbol(Foo2, Decl(interfaceThatInheritsFromItself.ts, 1, 1))
|
|
>T : Symbol(T, Decl(interfaceThatInheritsFromItself.ts, 3, 15))
|
|
}
|
|
|
|
interface Foo3<T> extends Foo3<string> { // error
|
|
>Foo3 : Symbol(Foo3, Decl(interfaceThatInheritsFromItself.ts, 4, 1))
|
|
>T : Symbol(T, Decl(interfaceThatInheritsFromItself.ts, 6, 15))
|
|
>Foo3 : Symbol(Foo3, Decl(interfaceThatInheritsFromItself.ts, 4, 1))
|
|
}
|
|
|
|
interface Bar implements Bar { // error
|
|
>Bar : Symbol(Bar, Decl(interfaceThatInheritsFromItself.ts, 7, 1))
|
|
>Bar : Symbol(Bar, Decl(interfaceThatInheritsFromItself.ts, 7, 1))
|
|
}
|
|
|
|
|