Skip to content

Commit 5fff6a4

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@ A compile-time error occurs unless all of the following are true for an override
28002800
> }
28012801
> ```
28022802
>
2803-
> Without the type parameter constraints in the overriding methods, the compiler wont know which base method is being overridden. *end example*
2803+
> Without the type parameter constraint `where T : class`, the base method with the reference-typed type parameter cannot be overridden. *end example*
28042804
28052805
An override declaration can access the overridden base method using a *base_access* ([§12.8.15](expressions.md#12815-base-access)).
28062806

0 commit comments

Comments
 (0)