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
The assignment for barOne throws an error but the assignment for barTwo does not.
π Expected behavior
I was expecting that either both of them fail or that none of them is failing.
π
Apologies if this is not a Bug but I dont get it and I could not find any explanation for this online.
I got stuck for quite a while with this Issue. My problem is that I dont understand why an conditional assignmnet like the one for barOne is failing. Then I discovered that when I do the assignment like I did for barTwo, Typescript isnt complaining.
I would expect that eiter both of them throw an error or both of them dont throw one.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
The assignment for
barOne
throws an error but the assignment forbarTwo
does not.π Expected behavior
I was expecting that either both of them fail or that none of them is failing.
π
Apologies if this is not a Bug but I dont get it and I could not find any explanation for this online.
I got stuck for quite a while with this Issue. My problem is that I dont understand why an conditional assignmnet like the one for
barOne
is failing. Then I discovered that when I do the assignment like I did forbarTwo
, Typescript isnt complaining.I would expect that eiter both of them throw an error or both of them dont throw one.
The text was updated successfully, but these errors were encountered: