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
{{ message }}
Repository navigation
Function that always throws is not inferred as having never return type #16608
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Activity
ahejlsberg commentedon Jun 19, 2017
This is by design. We had it the way you suggest originally but I was too much of a breaking change. See #8767 for more details.
masaeedu commentedon Jun 19, 2017
Anders Hejlsberg (@ahejlsberg) Could we have an off-by-default compiler flag that unifies this behavior?
basarat commentedon Jun 19, 2017
Perhaps only class methods should get
voidinference 🌹mhegazy commentedon Aug 17, 2017
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
aluanhaddad commentedon Nov 7, 2017
I really like Basarat Ali Syed (@basarat)'s suggestion.