@@ -47,25 +47,25 @@ type LocalVerificationTests() =
4747
4848 this.Expect " TypeArgumentsInference6" []
4949 this.Expect " TypeArgumentsInference7" []
50- this.Expect " TypeArgumentsInference8" []
51- this.Expect " TypeArgumentsInference9" []
50+ this.Expect " TypeArgumentsInference8" [ Warning WarningCode.DeprecatedNewArray ]
51+ this.Expect " TypeArgumentsInference9" [ Warning WarningCode.DeprecatedNewArray ]
5252 this.Expect " TypeArgumentsInference10" []
5353 this.Expect " TypeArgumentsInference11" []
5454 this.Expect " TypeArgumentsInference12" []
5555 this.Expect " TypeArgumentsInference13" []
5656 this.Expect " TypeArgumentsInference14" []
5757 this.Expect " TypeArgumentsInference15" []
58- this.Expect " TypeArgumentsInference16" []
59- this.Expect " TypeArgumentsInference17" []
60- this.Expect " TypeArgumentsInference18" []
58+ this.Expect " TypeArgumentsInference16" [ Warning WarningCode.DeprecatedNewArray ]
59+ this.Expect " TypeArgumentsInference17" [ Warning WarningCode.DeprecatedNewArray ]
60+ this.Expect " TypeArgumentsInference18" [ Warning WarningCode.DeprecatedNewArray ]
6161 this.Expect " TypeArgumentsInference19" []
6262 this.Expect " TypeArgumentsInference20" []
6363 this.Expect " TypeArgumentsInference21" [ Error ErrorCode.TypeMismatch ]
6464 this.Expect " TypeArgumentsInference22" [ Error ErrorCode.TypeMismatch ]
6565 this.Expect " TypeArgumentsInference23" []
6666 this.Expect " TypeArgumentsInference24" []
67- this.Expect " TypeArgumentsInference25" []
68- this.Expect " TypeArgumentsInference26" []
67+ this.Expect " TypeArgumentsInference25" [ Warning WarningCode.DeprecatedNewArray ]
68+ this.Expect " TypeArgumentsInference26" [ Warning WarningCode.DeprecatedNewArray ]
6969 this.Expect " TypeArgumentsInference27" [ Error ErrorCode.TypeMismatch ]
7070 this.Expect " TypeArgumentsInference28" [ Error ErrorCode.TypeMismatch ]
7171 this.Expect " TypeArgumentsInference29" [ Error ErrorCode.InvalidCyclicTypeParameterResolution ]
@@ -88,8 +88,8 @@ type LocalVerificationTests() =
8888 this.Expect " TypeArgumentsInference33" [ Error ErrorCode.TypeMismatch ]
8989 this.Expect " TypeArgumentsInference34" []
9090 this.Expect " TypeArgumentsInference35" []
91- this.Expect " TypeArgumentsInference36" []
92- this.Expect " TypeArgumentsInference37" []
91+ this.Expect " TypeArgumentsInference36" [ Warning WarningCode.DeprecatedNewArray ]
92+ this.Expect " TypeArgumentsInference37" [ Warning WarningCode.DeprecatedNewArray ]
9393 this.Expect " TypeArgumentsInference38" [ Error ErrorCode.TypeMismatch ]
9494 this.Expect " TypeArgumentsInference39" [ Error ErrorCode.TypeMismatch ]
9595 this.Expect " TypeArgumentsInference40" []
@@ -134,10 +134,10 @@ type LocalVerificationTests() =
134134
135135 this.Expect " VariableDeclaration15" []
136136 this.Expect " VariableDeclaration16" []
137- this.Expect " VariableDeclaration17" []
138- this.Expect " VariableDeclaration18" []
139- this.Expect " VariableDeclaration19" []
140- this.Expect " VariableDeclaration20" []
137+ this.Expect " VariableDeclaration17" [ Warning WarningCode.DeprecatedNewArray ]
138+ this.Expect " VariableDeclaration18" [ Warning WarningCode.DeprecatedNewArray ]
139+ this.Expect " VariableDeclaration19" [ Warning WarningCode.DeprecatedNewArray ]
140+ this.Expect " VariableDeclaration20" [ Warning WarningCode.DeprecatedNewArray ]
141141 this.Expect " VariableDeclaration21" []
142142 this.Expect " VariableDeclaration22" []
143143 this.Expect " VariableDeclaration23" []
@@ -157,7 +157,7 @@ type LocalVerificationTests() =
157157 this.Expect " CopyAndUpdateArray1" []
158158 this.Expect " CopyAndUpdateArray2" []
159159 this.Expect " CopyAndUpdateArray3" []
160- this.Expect " CopyAndUpdateArray4" []
160+ this.Expect " CopyAndUpdateArray4" [ Warning WarningCode.DeprecatedNewArray ]
161161 this.Expect " CopyAndUpdateArray5" [ Error ErrorCode.TypeMismatchInCopyAndUpdateExpr ]
162162 this.Expect " CopyAndUpdateArray6" [ Error ErrorCode.TypeMismatchInCopyAndUpdateExpr ]
163163 this.Expect " CopyAndUpdateArray7" [ Error ErrorCode.TypeMismatchInCopyAndUpdateExpr ]
@@ -179,11 +179,23 @@ type LocalVerificationTests() =
179179 this.Expect " UpdateAndReassign3" []
180180 this.Expect " UpdateAndReassign4" [ Error ErrorCode.TypeMismatchInCopyAndUpdateExpr ]
181181 this.Expect " UpdateAndReassign5" [ Error ErrorCode.TypeMismatchInCopyAndUpdateExpr ]
182- this.Expect " UpdateAndReassign6" []
183- this.Expect " UpdateAndReassign7" []
184- this.Expect " UpdateAndReassign8" []
185- this.Expect " UpdateAndReassign9" [ Error ErrorCode.TypeMismatchInCopyAndUpdateExpr ]
186- this.Expect " UpdateAndReassign10" [ Error ErrorCode.TypeMismatchInCopyAndUpdateExpr ]
182+ this.Expect " UpdateAndReassign6" [ Warning WarningCode.DeprecatedNewArray ]
183+ this.Expect " UpdateAndReassign7" [ Warning WarningCode.DeprecatedNewArray ]
184+ this.Expect " UpdateAndReassign8" [ Warning WarningCode.DeprecatedNewArray ]
185+
186+ this.Expect
187+ " UpdateAndReassign9"
188+ [
189+ Error ErrorCode.TypeMismatchInCopyAndUpdateExpr
190+ Warning WarningCode.DeprecatedNewArray
191+ ]
192+
193+ this.Expect
194+ " UpdateAndReassign10"
195+ [
196+ Error ErrorCode.TypeMismatchInCopyAndUpdateExpr
197+ Warning WarningCode.DeprecatedNewArray
198+ ]
187199
188200
189201 [<Fact>]
@@ -234,7 +246,7 @@ type LocalVerificationTests() =
234246 this.Expect " ItemAccess16" []
235247 this.Expect " ItemAccess17" []
236248 this.Expect " ItemAccess18" []
237- this.Expect " ItemAccess19" []
249+ this.Expect " ItemAccess19" [ Warning WarningCode.DeprecatedNewArray ]
238250 this.Expect " ItemAccess20" []
239251
240252
@@ -255,22 +267,29 @@ type LocalVerificationTests() =
255267 Error ErrorCode.TypeMismatchInCopyAndUpdateExpr
256268 ]
257269
258- this.Expect " ItemUpdate9" []
270+ this.Expect " ItemUpdate9" [ Warning WarningCode.DeprecatedNewArray ]
259271
260272 this.Expect
261273 " ItemUpdate10"
262274 [
263275 Error ErrorCode.InvalidIdentifierExprInUpdate
264276 Error ErrorCode.ExcessContinuation
277+ Warning WarningCode.DeprecatedNewArray
265278 ]
266279
267- this.Expect " ItemUpdate11" [ Error ErrorCode.UpdateOfArrayItemExpr ]
280+ this.Expect
281+ " ItemUpdate11"
282+ [
283+ Error ErrorCode.UpdateOfArrayItemExpr
284+ Warning WarningCode.DeprecatedNewArray
285+ ]
268286
269287 this.Expect
270288 " ItemUpdate12"
271289 [
272290 Error ErrorCode.TypeMismatchInCopyAndUpdateExpr
273291 Error ErrorCode.TypeMismatchInCopyAndUpdateExpr
292+ Warning WarningCode.DeprecatedNewArray
274293 ]
275294
276295 this.Expect " ItemUpdate13" []
@@ -294,7 +313,7 @@ type LocalVerificationTests() =
294313 this.Expect " ItemUpdate18" [ Error ErrorCode.MissingFunctorForAutoGeneration ]
295314 this.Expect " ItemUpdate19" [ Error ErrorCode.MissingFunctorForAutoGeneration ]
296315 this.Expect " ItemUpdate20" []
297- this.Expect " ItemUpdate21" []
316+ this.Expect " ItemUpdate21" [ Warning WarningCode.DeprecatedNewArray ]
298317 this.Expect " ItemUpdate22" []
299318
300319
@@ -374,7 +393,13 @@ type LocalVerificationTests() =
374393 this.Expect " UsingDepAttrInDepCall" [ Warning WarningCode.DeprecationWithoutRedirect ]
375394 this.Expect " UsingDepTypeInDepCall" [ Warning WarningCode.DeprecationWithoutRedirect ]
376395
377- this.Expect " UsingDeprecatedType1" [ Warning WarningCode.DeprecationWithoutRedirect ]
396+ this.Expect
397+ " UsingDeprecatedType1"
398+ [
399+ Warning WarningCode.DeprecationWithoutRedirect
400+ Warning WarningCode.DeprecatedNewArray
401+ ]
402+
378403 this.Expect " UsingDeprecatedType2" [ Warning WarningCode.DeprecationWithoutRedirect ]
379404 this.Expect " UsingDeprecatedType3" [ Warning WarningCode.DeprecationWithoutRedirect ]
380405
@@ -392,7 +417,13 @@ type LocalVerificationTests() =
392417 Warning WarningCode.DeprecationWithoutRedirect
393418 ]
394419
395- this.Expect " UsingRenamedType1" [ Warning WarningCode.DeprecationWithRedirect ]
420+ this.Expect
421+ " UsingRenamedType1"
422+ [
423+ Warning WarningCode.DeprecationWithRedirect
424+ Warning WarningCode.DeprecatedNewArray
425+ ]
426+
396427 this.Expect " UsingRenamedType2" [ Warning WarningCode.DeprecationWithRedirect ]
397428 this.Expect " UsingRenamedType3" [ Warning WarningCode.DeprecationWithRedirect ]
398429
0 commit comments