Skip to content

Commit fd15588

Browse files
committed
remove redundant conversions
1 parent 53705cb commit fd15588

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

standard/conversions.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -847,12 +847,6 @@ Evaluation of a nullable conversion based on an underlying conversion from `S`
847847
- If the nullable conversion is from `S` to `T?`, the conversion is evaluated as the underlying conversion from `S` to `T` followed by a wrapping from `T` to `T?`.
848848
- If the nullable conversion is from `S?` to `T`, the conversion is evaluated as an unwrapping from `S?` to `S` followed by the underlying conversion from `S` to `T`.
849849
850-
Conversion from `A` to `Nullable<B>` is:
851-
852-
- an implicit nullable conversion if there is an identity conversion or implicit conversion from `A` to `B`;
853-
- an explicit nullable conversion if there is an explicit conversion from `A` to `B`;
854-
- otherwise, invalid.
855-
856850
### 10.6.2 Lifted conversions
857851
858852
Given a user-defined conversion operator that converts from a non-nullable value type `S` to a non-nullable value type `T`, a ***lifted conversion operator*** exists that converts from `S?` to `T?`. This lifted conversion operator performs an unwrapping from `S?` to `S` followed by the user-defined conversion from `S` to `T` followed by a wrapping from `T` to `T?`, except that a null valued `S?` converts directly to a null valued `T?`. A lifted conversion operator has the same implicit or explicit classification as its underlying user-defined conversion operator.

0 commit comments

Comments
 (0)