File: unionSignaturesWithThisParameter.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (35 lines) | stat: -rw-r--r-- 1,326 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
26
27
28
29
30
31
32
33
34
35
=== tests/cases/compiler/unionSignaturesWithThisParameter.ts ===
// Repro from #20802

function x<T>(ctor: {
>x : Symbol(x, Decl(unionSignaturesWithThisParameter.ts, 0, 0))
>T : Symbol(T, Decl(unionSignaturesWithThisParameter.ts, 2, 11))
>ctor : Symbol(ctor, Decl(unionSignaturesWithThisParameter.ts, 2, 14))

    (this: {}, v: T): void;
>this : Symbol(this, Decl(unionSignaturesWithThisParameter.ts, 3, 5))
>v : Symbol(v, Decl(unionSignaturesWithThisParameter.ts, 3, 14))
>T : Symbol(T, Decl(unionSignaturesWithThisParameter.ts, 2, 11))

    new(v: T): void;
>v : Symbol(v, Decl(unionSignaturesWithThisParameter.ts, 4, 8))
>T : Symbol(T, Decl(unionSignaturesWithThisParameter.ts, 2, 11))

} | {
    (v: T): void;
>v : Symbol(v, Decl(unionSignaturesWithThisParameter.ts, 6, 5))
>T : Symbol(T, Decl(unionSignaturesWithThisParameter.ts, 2, 11))

    new(v: T): void;
>v : Symbol(v, Decl(unionSignaturesWithThisParameter.ts, 7, 8))
>T : Symbol(T, Decl(unionSignaturesWithThisParameter.ts, 2, 11))

}, t: T) {
>t : Symbol(t, Decl(unionSignaturesWithThisParameter.ts, 8, 2))
>T : Symbol(T, Decl(unionSignaturesWithThisParameter.ts, 2, 11))

    new ctor(t);
>ctor : Symbol(ctor, Decl(unionSignaturesWithThisParameter.ts, 2, 14))
>t : Symbol(t, Decl(unionSignaturesWithThisParameter.ts, 8, 2))
}