You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static name: number; // error without useDefineForClassFields
129
129
~~~~
130
130
!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName_Anonymous'.
131
131
name: string; // ok
132
132
}
133
133
134
134
var StaticNameFn_Anonymous = class {
135
-
static name() {} // error
135
+
static name() {} // error without useDefineForClassFields
136
136
~~~~
137
137
!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn_Anonymous'.
138
138
name() {} // ok
139
139
}
140
140
141
141
// length
142
142
var StaticLength_Anonymous = class {
143
-
static length: number; // error
143
+
static length: number; // error without useDefineForClassFields
144
144
~~~~~~
145
145
!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength_Anonymous'.
146
146
length: string; // ok
147
147
}
148
148
149
149
var StaticLengthFn_Anonymous = class {
150
-
static length() {} // error
150
+
static length() {} // error without useDefineForClassFields
151
151
~~~~~~
152
152
!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn_Anonymous'.
153
153
length() {} // ok
154
154
}
155
155
156
156
// prototype
157
157
var StaticPrototype_Anonymous = class {
158
-
static prototype: number; // error
158
+
static prototype: number; // always an error
159
159
~~~~~~~~~
160
160
!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype_Anonymous'.
static caller: number; // error without useDefineForClassFields
176
176
~~~~~~
177
177
!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller_Anonymous'.
178
178
caller: string; // ok
179
179
}
180
180
181
181
var StaticCallerFn_Anonymous = class {
182
-
static caller() {} // error
182
+
static caller() {} // error without useDefineForClassFields
183
183
~~~~~~
184
184
!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn_Anonymous'.
185
185
caller() {} // ok
186
186
}
187
187
188
188
// arguments
189
189
var StaticArguments_Anonymous = class {
190
-
static arguments: number; // error
190
+
static arguments: number; // error without useDefineForClassFields
191
191
~~~~~~~~~
192
192
!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments_Anonymous'.
193
193
arguments: string; // ok
194
194
}
195
195
196
196
var StaticArgumentsFn_Anonymous = class {
197
-
static arguments() {} // error
197
+
static arguments() {} // error without useDefineForClassFields
198
198
~~~~~~~~~
199
199
!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn_Anonymous'.
0 commit comments