Skip to content

Commit 6c4a174

Browse files
Nigel-Ecmajskeet
authored andcommitted
Update classes.md
Make changes not possible via suggestions
1 parent aafe291 commit 6c4a174

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
@@ -2160,7 +2160,6 @@ A generic method is a method whose declaration includes a *type_parameter_list*.
21602160

21612161
A generic *method_declaration*, either with an `override` modifier, or for an explicit interface member implementation, inherits type parameter constraints from the overridden method or interface member respectively. Such declarations may only have *type_parameter_constraints_clause*s containing the *primary_constraint*s `class` and `struct`, the meaning of which in this context is defined in [§15.6.5](classes.md#1565-override-methods) and [§18.6.2](interfaces.md#1862-explicit-interface-member-implementations) for overriding methods and explicit interface implementations respectively.
21622162

2163-
21642163
The *member_name* specifies the name of the method. Unless the method is an explicit interface member implementation ([§18.6.2](interfaces.md#1862-explicit-interface-member-implementations)), the *member_name* is simply an *identifier*.
21652164

21662165
For an explicit interface member implementation, the *member_name* consists of an *interface_type* followed by a “`.`” and an *identifier*. In this case, the declaration shall include no modifiers other than (possibly) `extern` or `async`.
@@ -2740,6 +2739,8 @@ When an instance method declaration includes an `override` modifier, the method
27402739
27412740
The method overridden by an override declaration is known as the ***overridden base method*** For an override method `M` declared in a class `C`, the overridden base method is determined by examining each base class of `C`, starting with the direct base class of `C` and continuing with each successive direct base class, until in a given base class type at least one accessible method is located which has the same signature as `M` after substitution of type arguments. For the purposes of locating the overridden base method, a method is considered accessible if it is `public`, if it is `protected`, if it is `protected internal`, or if it is either `internal` or `private protected` and declared in the same program as `C`.
27422741
2742+
The overriding method inherits any *type_parameter_constraints_clause*s of the overridden base method.
2743+
27432744
A compile-time error occurs unless all of the following are true for an override declaration:
27442745
27452746
- An overridden base method can be located as described above.

0 commit comments

Comments
 (0)