You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Incorporate Better Betterness
This commit adds the notes from https://github.com/dotnet/roslyn/blob/main/docs/specs/CSharp%206/Better%20Betterness.md
* Incorporate changes from #283
Issue #283 contains notes for how the implementation differed from the proposed better betterness text.
* compat for delegate conversion
This commit brings in the method group conversion fix that caused dotnet/roslyn#6750
It needs wordsmithing for a number of reasons:
- "corresponding argument" isn't defined.
- the section references itself.
- I think there may have been requirements from the prior commit regarding delegates and expressions that are still needed.
* initial feedback.
* section reference
* a bit of editing
* I think this gets close
This gets close to what's implemented in C# 6.0.
I think this fails as a description in the case of #499
For 7.3, it would be better to describe that change in the section on Method Group conversion.
* review from the meeting.
* fix awkward grammar
* limit bullet to method group conversion.
Copy file name to clipboardExpand all lines: standard/expressions.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -956,34 +956,34 @@ In case the parameter type sequences `{P₁, P₂, ..., Pᵥ}` and `{Q₁, Q₂
956
956
957
957
#### 11.6.4.4 Better conversion from expression
958
958
959
-
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 at least one of the following holds:
959
+
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:
960
960
961
-
- `E` has a type `S` and an identity conversion exists from `S` to `T₁` but not from `S` to `T₂`
962
-
- `E` is not an anonymous function and `T₁` is a better conversion target than `T₂` ([§11.6.4.6](expressions.md#11646-better-conversion-target))
0 commit comments