-
Notifications
You must be signed in to change notification settings - Fork 12.8k
/
Copy pathcompoundAdditionAssignmentLHSCanBeAssigned.types
202 lines (160 loc) · 2.35 KB
/
compoundAdditionAssignmentLHSCanBeAssigned.types
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
=== tests/cases/conformance/expressions/assignmentOperator/compoundAdditionAssignmentLHSCanBeAssigned.ts ===
enum E { a, b }
>E : E
>a : E
>b : E
var a: any;
>a : any
var b: void;
>b : void
var x1: any;
>x1 : any
x1 += a;
>x1 += a : any
>x1 : any
>a : any
x1 += b;
>x1 += b : any
>x1 : any
>b : void
x1 += true;
>x1 += true : any
>x1 : any
>true : boolean
x1 += 0;
>x1 += 0 : any
>x1 : any
>0 : number
x1 += '';
>x1 += '' : string
>x1 : any
>'' : string
x1 += E.a;
>x1 += E.a : any
>x1 : any
>E.a : E
>E : typeof E
>a : E
x1 += {};
>x1 += {} : any
>x1 : any
>{} : {}
x1 += null;
>x1 += null : any
>x1 : any
>null : null
x1 += undefined;
>x1 += undefined : any
>x1 : any
>undefined : undefined
var x2: string;
>x2 : string
x2 += a;
>x2 += a : string
>x2 : string
>a : any
x2 += b;
>x2 += b : string
>x2 : string
>b : void
x2 += true;
>x2 += true : string
>x2 : string
>true : boolean
x2 += 0;
>x2 += 0 : string
>x2 : string
>0 : number
x2 += '';
>x2 += '' : string
>x2 : string
>'' : string
x2 += E.a;
>x2 += E.a : string
>x2 : string
>E.a : E
>E : typeof E
>a : E
x2 += {};
>x2 += {} : string
>x2 : string
>{} : {}
x2 += null;
>x2 += null : string
>x2 : string
>null : null
x2 += undefined;
>x2 += undefined : string
>x2 : string
>undefined : undefined
var x3: number;
>x3 : number
x3 += a;
>x3 += a : any
>x3 : number
>a : any
x3 += 0;
>x3 += 0 : number
>x3 : number
>0 : number
x3 += E.a;
>x3 += E.a : number
>x3 : number
>E.a : E
>E : typeof E
>a : E
x3 += null;
>x3 += null : number
>x3 : number
>null : null
x3 += undefined;
>x3 += undefined : number
>x3 : number
>undefined : undefined
var x4: E;
>x4 : E
>E : E
x4 += a;
>x4 += a : any
>x4 : E
>a : any
x4 += 0;
>x4 += 0 : number
>x4 : E
>0 : number
x4 += E.a;
>x4 += E.a : number
>x4 : E
>E.a : E
>E : typeof E
>a : E
x4 += null;
>x4 += null : number
>x4 : E
>null : null
x4 += undefined;
>x4 += undefined : number
>x4 : E
>undefined : undefined
var x5: boolean;
>x5 : boolean
x5 += a;
>x5 += a : any
>x5 : boolean
>a : any
var x6: {};
>x6 : {}
x6 += a;
>x6 += a : any
>x6 : {}
>a : any
x6 += '';
>x6 += '' : string
>x6 : {}
>'' : string
var x7: void;
>x7 : void
x7 += a;
>x7 += a : any
>x7 : void
>a : any