File: declarationEmitFBoundedTypeParams.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 1,179 bytes parent folder | download | duplicates (2)
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/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, 3, 16))
>b : Symbol(b, Decl(declarationEmitFBoundedTypeParams.ts, 3, 18))
>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 3, 16))
>result : Symbol(result, Decl(declarationEmitFBoundedTypeParams.ts, 3, 32))
>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 3, 16))
>value : Symbol(value, Decl(declarationEmitFBoundedTypeParams.ts, 3, 44))
>b : Symbol(b, Decl(declarationEmitFBoundedTypeParams.ts, 3, 18))
>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 3, 16))

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

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