File: genericTypeWithMultipleBases3.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 (49 lines) | stat: -rw-r--r-- 2,070 bytes parent folder | download | duplicates (7)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
=== tests/cases/compiler/genericTypeWithMultipleBases3.ts ===
interface IA<T> {
>IA : Symbol(IA, Decl(genericTypeWithMultipleBases3.ts, 0, 0))
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 0, 13))

foo(x: T): T;
>foo : Symbol(IA.foo, Decl(genericTypeWithMultipleBases3.ts, 0, 17))
>x : Symbol(x, Decl(genericTypeWithMultipleBases3.ts, 2, 4))
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 0, 13))
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 0, 13))

}

interface IB<T> {
>IB : Symbol(IB, Decl(genericTypeWithMultipleBases3.ts, 4, 1))
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 6, 13))

bar(x: T): T;
>bar : Symbol(IB.bar, Decl(genericTypeWithMultipleBases3.ts, 6, 17))
>x : Symbol(x, Decl(genericTypeWithMultipleBases3.ts, 8, 4))
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 6, 13))
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 6, 13))

}

interface IC<T> extends IA<T>, IB<T> { }
>IC : Symbol(IC, Decl(genericTypeWithMultipleBases3.ts, 10, 1))
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 12, 13))
>IA : Symbol(IA, Decl(genericTypeWithMultipleBases3.ts, 0, 0))
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 12, 13))
>IB : Symbol(IB, Decl(genericTypeWithMultipleBases3.ts, 4, 1))
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 12, 13))

var c: IC<number>;
>c : Symbol(c, Decl(genericTypeWithMultipleBases3.ts, 14, 3))
>IC : Symbol(IC, Decl(genericTypeWithMultipleBases3.ts, 10, 1))

var x = c.foo;
>x : Symbol(x, Decl(genericTypeWithMultipleBases3.ts, 16, 3))
>c.foo : Symbol(IA.foo, Decl(genericTypeWithMultipleBases3.ts, 0, 17))
>c : Symbol(c, Decl(genericTypeWithMultipleBases3.ts, 14, 3))
>foo : Symbol(IA.foo, Decl(genericTypeWithMultipleBases3.ts, 0, 17))

var y = c.bar;
>y : Symbol(y, Decl(genericTypeWithMultipleBases3.ts, 18, 3))
>c.bar : Symbol(IB.bar, Decl(genericTypeWithMultipleBases3.ts, 6, 17))
>c : Symbol(c, Decl(genericTypeWithMultipleBases3.ts, 14, 3))
>bar : Symbol(IB.bar, Decl(genericTypeWithMultipleBases3.ts, 6, 17))