Skip to content

Commit fa3774f

Browse files
committed
Remove line referring to impossible situation in C# 8
1 parent 2b23085 commit fa3774f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

standard/classes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ The nullability of the type argument need not match the nullability of the type
445445
<!-- Remove in C# 9, when `?` is allowed on any type parameter. -->
446446
The nullable type annotation, `?`, can only be used on a type parameter that has the value type constraint, the reference type constraint, or a class type constraint.
447447

448-
For a type parameter `T` when the type argument is a nullable reference type `C?`, instances of `T?` are interpreted as `C?`, not `C??`.
448+
<!-- Add in C# 9, when `?` is allowed on nullable reference type parameters. -->
449+
<!-- For a type parameter `T` when the type argument is a nullable reference type `C?`, instances of `T?` are interpreted as `C?`, not `C??`. -->
449450

450451
> *Example*: The following examples show how the nullability of a type argument impacts the nullability of a declaration of its type parameter:
451452
>

0 commit comments

Comments
 (0)