Skip to content

Commit ccf82f8

Browse files
Nigel-Ecmajnm2
authored andcommitted
Update standard/interfaces.md
Co-authored-by: Joseph Musser <[email protected]>
1 parent 293ee42 commit ccf82f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ An explicit interface method implementation inherits any type parameter constrai
664664
A *type_parameter_constraints_clause* on an explicit interface method implementation may only consist of the `class` or `struct` *primary_constraint*s applied to *type_parameter*s which are known according to the inherited constraints to be either reference or value types respectively. Any type of the form `T?` in the signature of the explicit interface method implementation, where `T` is a type parameter, is interpreted as follows:
665665
666666
- If a `class` constraint is added for type parameter `T` then `T?` is a nullable reference type; otherwise
667-
- If either there is no added constraint, or a `struct` is added, for the type parameter `T` then `T?` is a nullable value type.
667+
- If either there is no added constraint, or a `struct` constraint is added, for the type parameter `T` then `T?` is a nullable value type.
668668
669669
> *Example*: The following demonstrates how the rules work when type parameters are involved:
670670
>

0 commit comments

Comments
 (0)