File: declarationEmitFBoundedTypeParams.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 (24 lines) | stat: -rw-r--r-- 1,185 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
=== tests/cases/compiler/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))
}