Skip to content

Commit b6412f4

Browse files
Automated Section renumber and grammar extraction (#529)
* [create-pull-request] automated change * Update standard/expressions.md Co-authored-by: BillWagner <[email protected]> Co-authored-by: Bill Wagner <[email protected]>
1 parent a1e3aa4 commit b6412f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

standard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
- [§11.6.4.2](expressions.md#11642-applicable-function-member) Applicable function member
263263
- [§11.6.4.3](expressions.md#11643-better-function-member) Better function member
264264
- [§11.6.4.4](expressions.md#11644-better-conversion-from-expression) Better conversion from expression
265-
- [§11.6.4.5](expressions.md#11645-better-conversion-from-type) Better conversion from type
265+
- [§11.6.4.5](expressions.md#11645-exactly-matching-expression) Exactly matching expression
266266
- [§11.6.4.6](expressions.md#11646-better-conversion-target) Better conversion target
267267
- [§11.6.4.7](expressions.md#11647-overloading-in-generic-classes) Overloading in generic classes
268268
- [§11.6.5](expressions.md#1165-compile-time-checking-of-dynamic-member-invocation) Compile-time checking of dynamic member invocation

standard/expressions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -958,16 +958,16 @@ In case the parameter type sequences `{P₁, P₂, ..., Pᵥ}` and `{Q₁, Q₂
958958
959959
Given an implicit conversion `C₁` that converts from an expression `E` to a type `T₁`, and an implicit conversion `C₂` that converts from an expression `E` to a type `T₂`, `C₁` is a better conversion than `C₂` if one of the following holds:
960960
961-
- `E` exactly matches `T₁` and `E` does not exactly match `T₂` (§11.6.4.5)
962-
- `E` exactly matches both or neither of `T₁` and `T₂`, and `T₁` is a better conversion target than `T₂` (§11.6.4.6)
961+
- `E` exactly matches `T₁` and `E` does not exactly match `T₂` ([§11.6.4.5](expressions.md#11645-exactly-matching-expression))
962+
- `E` exactly matches both or neither of `T₁` and `T₂`, and `T₁` is a better conversion target than `T₂` ([§11.6.4.6](expressions.md#11646-better-conversion-target))
963963
964964
#### 11.6.4.5 Exactly matching expression
965965
966966
Given an expression `E` and a type `T`, `E` ***exactly matches*** `T` if one of the following holds:
967967
968968
- `E` has a type `S`, and an identity conversion exists from `S` to `T`
969969
- `E` is an anonymous function, `T` is either a delegate type `D` or an expression tree type `Expression<D>` and one of the following holds:
970-
- An inferred return type `X` exists for `E` in the context of the parameter list of `D` (§11.6.3.12), and an identity conversion exists from `X` to the return type of `D`
970+
- An inferred return type `X` exists for `E` in the context of the parameter list of `D` ([§11.6.3.12](expressions.md#116312-fixing)), and an identity conversion exists from `X` to the return type of `D`
971971
- Either `E` is non-async and `D` has a return type `Y` or `E` is async and `D` has a return type `Task<Y>`, and one of the following holds:
972972
- The body of `E` is an expression that exactly matches `Y`
973973
- The body of `E` is a statement block where every return statement returns an expression that exactly matches `Y`
@@ -983,7 +983,7 @@ Given an expression `E` and two types `T₁` and `T₂`, `T₁` is a ***better c
983983
- `S₁` is `short` and `S₂` is `ushort`, `uint`, or `ulong`
984984
- `S₁` is `int` and `S₂` is `uint`, or `ulong`
985985
- `S₁` is `long` and `S₂` is `ulong`
986-
- `E` is a method group conversion10.8() and `T₁` is compatible19.4) with the single best method from the method group
986+
- `E` is a method group conversion ([§10.8](conversions.md#108-method-group-conversions)) and `T₁` is compatible ([§19.4](delegates.md#194-delegate-compatibility)) with the single best method from the method group
987987
988988
#### 11.6.4.7 Overloading in generic classes
989989

0 commit comments

Comments
 (0)