File: declarationEmitFBoundedTypeParams.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 (26 lines) | stat: -rw-r--r-- 1,237 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
//// [tests/cases/compiler/declarationEmitFBoundedTypeParams.ts] ////

=== declarationEmitFBoundedTypeParams.ts ===
// Repro from #6040

function append<a, b extends a>(result: a[], value: b): a[] {
>append : Symbol(append, Decl(declarationEmitFBoundedTypeParams.ts, 0, 0))
>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 2, 16))
>b : Symbol(b, Decl(declarationEmitFBoundedTypeParams.ts, 2, 18))
>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 2, 16))
>result : Symbol(result, Decl(declarationEmitFBoundedTypeParams.ts, 2, 32))
>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 2, 16))
>value : Symbol(value, Decl(declarationEmitFBoundedTypeParams.ts, 2, 44))
>b : Symbol(b, Decl(declarationEmitFBoundedTypeParams.ts, 2, 18))
>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 2, 16))

    result.push(value);
>result.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --))
>result : Symbol(result, Decl(declarationEmitFBoundedTypeParams.ts, 2, 32))
>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --))
>value : Symbol(value, Decl(declarationEmitFBoundedTypeParams.ts, 2, 44))

    return result;
>result : Symbol(result, Decl(declarationEmitFBoundedTypeParams.ts, 2, 32))
}