Files
tsgo/testdata/baselines/reference/submodule/conformance/interfaceThatInheritsFromItself.symbols
2025-02-26 14:53:49 -08:00

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))
}