File: contextualTypingWithFixedTypeParameters1.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,499 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/contextualTypingWithFixedTypeParameters1.ts ===
var f10: <T>(x: T, b: () => (a: T) => void, y: T) => T;
>f10 : Symbol(f10, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 3))
>T : Symbol(T, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 10))
>x : Symbol(x, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 13))
>T : Symbol(T, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 10))
>b : Symbol(b, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 18))
>a : Symbol(a, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 29))
>T : Symbol(T, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 10))
>y : Symbol(y, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 43))
>T : Symbol(T, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 10))
>T : Symbol(T, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 10))

f10('', () => a => a.foo, ''); // a is ""
>f10 : Symbol(f10, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 3))
>a : Symbol(a, Decl(contextualTypingWithFixedTypeParameters1.ts, 1, 13))
>a : Symbol(a, Decl(contextualTypingWithFixedTypeParameters1.ts, 1, 13))

var r9 = f10('', () => (a => a.foo), 1); // error
>r9 : Symbol(r9, Decl(contextualTypingWithFixedTypeParameters1.ts, 2, 3))
>f10 : Symbol(f10, Decl(contextualTypingWithFixedTypeParameters1.ts, 0, 3))
>a : Symbol(a, Decl(contextualTypingWithFixedTypeParameters1.ts, 2, 24))
>a : Symbol(a, Decl(contextualTypingWithFixedTypeParameters1.ts, 2, 24))