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
Errors inside the if block because p is inferred as never.
π Expected behavior
No errors.
I also believe the non-null assertion operator in the if block should not be required since the context would only be reached if p was not null. The non-null assertion in the if block was required in 4.2.2.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
non-null assertion, deno, Property 'x' does not exist on type 'never'.
π Version & Regression Information
This regression happened between typescript 4.2.2 and 4.3.2.
β― Playground Link
Playground link showing no errors in 4.2.2
Playground link showing errors in 4.3.2
π» Code
π Actual behavior
Errors inside the if block because p is inferred as never.
π Expected behavior
No errors.
I also believe the non-null assertion operator in the if block should not be required since the context would only be reached if p was not null. The non-null assertion in the if block was required in 4.2.2.
The text was updated successfully, but these errors were encountered: