File: bestCommonTypeWithOptionalProperties.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (64 lines) | stat: -rw-r--r-- 3,060 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
=== tests/cases/compiler/bestCommonTypeWithOptionalProperties.ts ===
interface X { foo: string }
>X : Symbol(X, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 0))
>foo : Symbol(X.foo, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 13))

interface Y extends X { bar?: number }
>Y : Symbol(Y, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 27))
>X : Symbol(X, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 0))
>bar : Symbol(Y.bar, Decl(bestCommonTypeWithOptionalProperties.ts, 1, 23))

interface Z extends X { bar: string }
>Z : Symbol(Z, Decl(bestCommonTypeWithOptionalProperties.ts, 1, 38))
>X : Symbol(X, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 0))
>bar : Symbol(Z.bar, Decl(bestCommonTypeWithOptionalProperties.ts, 2, 23))

var x: X;
>x : Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3))
>X : Symbol(X, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 0))

var y: Y;
>y : Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3))
>Y : Symbol(Y, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 27))

var z: Z;
>z : Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3))
>Z : Symbol(Z, Decl(bestCommonTypeWithOptionalProperties.ts, 1, 38))

// All these arrays should be X[]
var b1 = [x, y, z];
>b1 : Symbol(b1, Decl(bestCommonTypeWithOptionalProperties.ts, 9, 3))
>x : Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3))
>y : Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3))
>z : Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3))

var b2 = [x, z, y];
>b2 : Symbol(b2, Decl(bestCommonTypeWithOptionalProperties.ts, 10, 3))
>x : Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3))
>z : Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3))
>y : Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3))

var b3 = [y, x, z];
>b3 : Symbol(b3, Decl(bestCommonTypeWithOptionalProperties.ts, 11, 3))
>y : Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3))
>x : Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3))
>z : Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3))

var b4 = [y, z, x];
>b4 : Symbol(b4, Decl(bestCommonTypeWithOptionalProperties.ts, 12, 3))
>y : Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3))
>z : Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3))
>x : Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3))

var b5 = [z, x, y];
>b5 : Symbol(b5, Decl(bestCommonTypeWithOptionalProperties.ts, 13, 3))
>z : Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3))
>x : Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3))
>y : Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3))

var b6 = [z, y, x];
>b6 : Symbol(b6, Decl(bestCommonTypeWithOptionalProperties.ts, 14, 3))
>z : Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3))
>y : Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3))
>x : Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3))