File: genericConstraintSatisfaction1.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,062 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/genericConstraintSatisfaction1.ts ===
interface I<S> {
>I : Symbol(I, Decl(genericConstraintSatisfaction1.ts, 0, 0))
>S : Symbol(S, Decl(genericConstraintSatisfaction1.ts, 0, 12))

   f: <T extends S>(x: T) => void
>f : Symbol(I.f, Decl(genericConstraintSatisfaction1.ts, 0, 16))
>T : Symbol(T, Decl(genericConstraintSatisfaction1.ts, 1, 7))
>S : Symbol(S, Decl(genericConstraintSatisfaction1.ts, 0, 12))
>x : Symbol(x, Decl(genericConstraintSatisfaction1.ts, 1, 20))
>T : Symbol(T, Decl(genericConstraintSatisfaction1.ts, 1, 7))
}
 
var x: I<{s: string}>
>x : Symbol(x, Decl(genericConstraintSatisfaction1.ts, 4, 3))
>I : Symbol(I, Decl(genericConstraintSatisfaction1.ts, 0, 0))
>s : Symbol(s, Decl(genericConstraintSatisfaction1.ts, 4, 10))

x.f({s: 1})
>x.f : Symbol(I.f, Decl(genericConstraintSatisfaction1.ts, 0, 16))
>x : Symbol(x, Decl(genericConstraintSatisfaction1.ts, 4, 3))
>f : Symbol(I.f, Decl(genericConstraintSatisfaction1.ts, 0, 16))
>s : Symbol(s, Decl(genericConstraintSatisfaction1.ts, 5, 5))