Skip to content

Commit

Permalink
Tweak wording around receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Nov 2, 2022
1 parent baecb1c commit 429bd52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions standard/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -982,9 +982,9 @@ For a function member that includes a parameter array, if the function member is
Additional rules determine whether a method is applicable or not based on the context of the expression:
- An instance method is not applicable when the invocation has no instance receiver and `this` cannot be used explicitly (such as in static methods, field initializers and constructor initializers).
- A static method is not applicable when the invocation has an instance receiver.
- When the receiver is ambiguously an instance or type due to a color-color situation, both are applicable.
- An instance method is not applicable when the invocation has no explicit receiver and `this` cannot be used explicitly (such as in static methods, field initializers and constructor initializers).
- A static method is not applicable when the invocation has an explicit receiver which is not a type.
- When the receiver could be either an instance or a type as described in [§11.7.6.2](expressions.md#11762-identical-simple-names-and-type-names), both instance and static methods are applicable.
- A generic method whose type arguments (explicitly specified or inferred) do not all satisfy their constraints is not applicable.
- In the context of a method group conversion, there must exist an identity conversion (§10.2.2) between the method return type and the delegate's return type. Otherwise, the candidate method is not applicable.
Expand Down

0 comments on commit 429bd52

Please sign in to comment.