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
declarefunctionisFoo(): boolean;declareconstisUndefinedFoo: (()=>boolean)|undefined;if(isFoo){// uncalled function checks already work well here}if(!isFoo){// uncalled function checks should cover this case too}if(!isUndefinedFoo){// this case should not be covered}
π Actual behavior
Uncalled function checks do not work with the ! operator.
π Expected behavior
Unless a function may be undefined it would be very helpful to check whether it is called when it is used with the ! operator.
I created this issue to separate a part of the implementation of #42835 resulting from issue #35584. This specific issue was inspired by #35584 (comment).
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
uncalled function checks
,negation
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Uncalled function checks do not work with the
!
operator.π Expected behavior
Unless a function may be undefined it would be very helpful to check whether it is called when it is used with the
!
operator.I created this issue to separate a part of the implementation of #42835 resulting from issue #35584. This specific issue was inspired by #35584 (comment).
The text was updated successfully, but these errors were encountered: