Skip to content

Commit 1c39cdc

Browse files
committed
Accept new baselines
1 parent 4479013 commit 1c39cdc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/baselines/reference/implicitAnyDeclareVariablesWithoutTypeAndInit.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(3,5): error TS7034: Variable 'y' implicitly has type 'any' in some locations where its type cannot be determined.
22
tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(4,13): error TS7005: Variable 'foo' implicitly has an 'any' type.
33
tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(5,15): error TS7006: Parameter 'k' implicitly has an 'any' type.
4+
tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(5,20): error TS7005: Variable 'y' implicitly has an 'any' type.
45

56

6-
==== tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts (3 errors) ====
7+
==== tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts (4 errors) ====
78
// this should be an error
89
var x; // no error, control flow typed
910
var y; // error because captured
@@ -15,6 +16,8 @@ tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(5,15): err
1516
function func(k) { y }; // error at "k"
1617
~
1718
!!! error TS7006: Parameter 'k' implicitly has an 'any' type.
19+
~
20+
!!! error TS7005: Variable 'y' implicitly has an 'any' type.
1821
func(x);
1922

2023
// this shouldn't be an error

0 commit comments

Comments
 (0)