Accept new baselines

This commit is contained in:
Anders Hejlsberg 2016-09-29 15:04:14 -07:00
parent 447901367a
commit 1c39cdc7ef

View File

@ -1,9 +1,10 @@
tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(3,5): error TS7034: Variable 'y' implicitly has type 'any' in some locations where its type cannot be determined.
tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(4,13): error TS7005: Variable 'foo' implicitly has an 'any' type.
tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(5,15): error TS7006: Parameter 'k' implicitly has an 'any' type.
tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(5,20): error TS7005: Variable 'y' implicitly has an 'any' type.
==== tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts (3 errors) ====
==== tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts (4 errors) ====
// this should be an error
var x; // no error, control flow typed
var y; // error because captured
@ -15,6 +16,8 @@ tests/cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts(5,15): err
function func(k) { y }; // error at "k"
~
!!! error TS7006: Parameter 'k' implicitly has an 'any' type.
~
!!! error TS7005: Variable 'y' implicitly has an 'any' type.
func(x);
// this shouldn't be an error