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
functionfoo(){letelement=foo()asnumber;returnelement;}/*issue5403.ts(1,10): error TS7023: 'foo' implicitly has return type 'any' because it does nothave a return type annotation and is referenced directly or indirectly in one of its returnexpressions.issue5403.ts(2,6): error TS7022: 'element' implicitly has type 'any' because it does not havea type annotation and is referenced directly or indirectly in its own initializer.*/