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
Add normative language that a null literal conversion is classified as an implicit reference conversions. Add an informative note in 10.2.8 that provides a cross reference to the same.
@@ -165,11 +165,12 @@ The implicit reference conversions are:
165
165
-Fromasingle-dimensionalarraytype `S[]` to `System.Collections.Generic.IList<T>`, `System.Collections.Generic.IReadOnlyList<T>`, andtheirbaseinterfaces, providedthatthereisanimplicitidentityorreferenceconversionfrom `S` to `T`.
166
166
- Fromany *array_type* to `System.Array` andtheinterfacesitimplements.
167
167
- Fromany *delegate_type* to `System.Delegate` andtheinterfacesitimplements.
- Fromany *reference_type* toa *reference_type* `T` ifithasanimplicitidentityorreferenceconversiontoa *reference_type* `T₀` and `T₀` hasanidentityconversionto `T`.
170
169
- Fromany *reference_type* toaninterfaceordelegatetype `T` ifithasanimplicitidentityorreferenceconversiontoaninterfaceordelegatetype `T₀` and `T₀` isvariance-convertible ([§19.2.3.3](interfaces.md#19233-variance-conversion)) to `T`.
171
170
-Implicitconversionsinvolvingtypeparametersthatareknowntobereferencetypes. See [§10.2.12](conversions.md#10212-implicit-conversions-involving-type-parameters) for more details on implicit conversions involving type parameters.
172
171
172
+
> *Note*: A null literal conversion ([§10.2.7](conversions.md#1027-null-literal-conversions)) toareferencetypeisalsoclassifiedasanimplicitreferenceconversion. *endnote*
0 commit comments