File: interfaceThatInheritsFromItself.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (25 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download | duplicates (5)
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))
}