1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
=== tests/cases/conformance/interfaces/interfaceDeclarations/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))
}
|