You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We get the following error message:
Subsequent variable declarations must have the same type. Variable 'x' must be of type '() => any', but here has type '() => any'.
This is essentially the same as #463. The first declaration of x has type () => typeof f, but because f is not in the global scope, we say it is any, even though it is clearly not.
We have a similar problem for function declarations (and likely for module instances and class constructors):
We get the following error message:
Subsequent variable declarations must have the same type. Variable 'x' must be of type '() => any', but here has type '() => any'.
This is essentially the same as #463. The first declaration of x has type
() => typeof f
, but because f is not in the global scope, we say it is any, even though it is clearly not.We have a similar problem for function declarations (and likely for module instances and class constructors):
We get the following error on the type assertion:
Neither type '() => number' nor type '() => any' is assignable to the other.
But in fact '() => number' is assignable to '() => any'!
The text was updated successfully, but these errors were encountered: