Skip to content

Commit 620b3f9

Browse files
committed
Fix test
1 parent 1dedca7 commit 620b3f9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/baselines/reference/implicitAnyWidenToAny.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tests/cases/compiler/implicitAnyWidenToAny.ts(4,5): error TS7005: Variable 'wide
88
var widenArray = [null, undefined]; // error at "widenArray"
99
~~~~~~~~~~
1010
!!! error TS7005: Variable 'widenArray' implicitly has an 'any[]' type.
11-
var emptyArray = []; // error at "emptyArray"
11+
var emptyArray = [];
1212

1313
// these should not be error
1414
class AnimalObj {

tests/baselines/reference/implicitAnyWidenToAny.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var x = null; // error at "x"
44
var x1 = undefined; // error at "x1"
55
var widenArray = [null, undefined]; // error at "widenArray"
6-
var emptyArray = []; // error at "emptyArray"
6+
var emptyArray = [];
77

88
// these should not be error
99
class AnimalObj {
@@ -32,7 +32,7 @@ var obj1 = anyReturnFunc();
3232
var x = null; // error at "x"
3333
var x1 = undefined; // error at "x1"
3434
var widenArray = [null, undefined]; // error at "widenArray"
35-
var emptyArray = []; // error at "emptyArray"
35+
var emptyArray = [];
3636
// these should not be error
3737
var AnimalObj = (function () {
3838
function AnimalObj() {

tests/cases/compiler/implicitAnyWidenToAny.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var x = null; // error at "x"
44
var x1 = undefined; // error at "x1"
55
var widenArray = [null, undefined]; // error at "widenArray"
6-
var emptyArray = []; // error at "emptyArray"
6+
var emptyArray = [];
77

88
// these should not be error
99
class AnimalObj {

0 commit comments

Comments
 (0)