File: recursiveTypeIdentity.symbols

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (34 lines) | stat: -rw-r--r-- 1,076 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
//// [tests/cases/compiler/recursiveTypeIdentity.ts] ////

=== recursiveTypeIdentity.ts ===
interface A {
>A : Symbol(A, Decl(recursiveTypeIdentity.ts, 0, 0))

    <T extends A>(x: T): void;
>T : Symbol(T, Decl(recursiveTypeIdentity.ts, 1, 5))
>A : Symbol(A, Decl(recursiveTypeIdentity.ts, 0, 0))
>x : Symbol(x, Decl(recursiveTypeIdentity.ts, 1, 18))
>T : Symbol(T, Decl(recursiveTypeIdentity.ts, 1, 5))
}

interface B {
>B : Symbol(B, Decl(recursiveTypeIdentity.ts, 2, 1))

    <T extends B>(x: T): void;
>T : Symbol(T, Decl(recursiveTypeIdentity.ts, 5, 5))
>B : Symbol(B, Decl(recursiveTypeIdentity.ts, 2, 1))
>x : Symbol(x, Decl(recursiveTypeIdentity.ts, 5, 18))
>T : Symbol(T, Decl(recursiveTypeIdentity.ts, 5, 5))
}

interface C {
>C : Symbol(C, Decl(recursiveTypeIdentity.ts, 6, 1))

    (x: A): void;
>x : Symbol(x, Decl(recursiveTypeIdentity.ts, 9, 5))
>A : Symbol(A, Decl(recursiveTypeIdentity.ts, 0, 0))

    (x: B): void;
>x : Symbol(x, Decl(recursiveTypeIdentity.ts, 10, 5))
>B : Symbol(B, Decl(recursiveTypeIdentity.ts, 2, 1))
}