Control flow analysis for implicit any and array initialization works only when --noImplicitAny is on #13779
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
TypeScript Version: 2.1.1 / 2.2.0 nightly (current master)
As far as I understood from both #11263 and #11432, control flow analysis for implicit any and array initialization shouldn't be limited to the case when --noImplicitAny is enabled.
But currently it works only if --noImplicitAny is on.
If --noImplicitAny is off, variables are treated as 'any', and arrays are treated as 'any[]', after all the initializations.
Is it an expected behavior, or should CFA for implicit any and array initialization work regardless of the state of --noImplicitAny flag?
The text was updated successfully, but these errors were encountered: