'noImplicitReturns' doesn't report an error if any branch returns 'any' #13112
Labels
Bug
A bug in TypeScript
Working as Intended
The behavior described is the intended behavior; this is not a bug
Milestone
The following correctly reports an error on
foo
undernoImplicitReturns
.However, removing the type annotations from
y
andz
squelches the error.The text was updated successfully, but these errors were encountered: