-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Champion "Nullable-enhanced common type" #33
Copy link
Copy link
Closed as not planned
Description
- Proposal added: proposals/csharp-9.0/nullable-enhanced-common-type.md
- Discussed in LDM (2017-04-19)
- Decision in LDM (2017-04-19 Approved to proceed with implementation)
- Finalized (done, rejected, inactive)
- Spec'ed
Summary
There is a situation in which the current common-type algorithm results are counter-intuitive, and results in the programmer adding what feels like a redundant cast to the code. With this change, an expression such as condition ? 1 : null would result in a value of type int?.
This and #881 should be taken into the language at the same time.
Reactions are currently unavailable