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
First, congrats to the new compiler switch!
I don't know if this is intentional since strict optional property semantics seems tricky. Related to #44421.
🔎 Search Terms
strict optional properties, assignability
🕗 Version & Regression Information
Nightly, with strictOptionalProperties on
I was unable to test this on prior versions because strictOptionalProperties is a new option
Bug Report
First, congrats to the new compiler switch!
I don't know if this is intentional since strict optional property semantics seems tricky. Related to #44421.
🔎 Search Terms
strict optional properties, assignability
🕗 Version & Regression Information
Nightly, with strictOptionalProperties on
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
TS allow
a = e
where the propertyb
might be undefined.🙂 Expected behavior
TS should report error because of consistency?
The text was updated successfully, but these errors were encountered: