mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Accept new baselines
This commit is contained in:
parent
447901367a
commit
1c39cdc7ef
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user