LambdaRewriter.SubstituteTypeArguments should make progress#37487
LambdaRewriter.SubstituteTypeArguments should make progress#37487jcouv merged 4 commits intodotnet:masterfrom
Conversation
| return CreateCompilation(source, options: WithNonNullTypesTrue(), references: references); | ||
| } | ||
|
|
||
| [Fact, WorkItem(37456, "https://github.com/dotnet/roslyn/issues/37456")] |
There was a problem hiding this comment.
is this the right file for this test?
There was a problem hiding this comment.
I think it's ok because the regression came from nullability work.
| } | ||
|
|
||
| [Fact, WorkItem(37456, "https://github.com/dotnet/roslyn/issues/37456")] | ||
| public void verify37456() |
There was a problem hiding this comment.
v [](start = 20, length = 1)
Uppercase first char.
Consider changing this back to Refers to: src/Compilers/CSharp/Portable/Lowering/LambdaRewriter/LambdaRewriter.cs:946 in ded9135. [](commit_id = ded9135, deletion_comment = False) |
|
Fix merged for 16.3p2. We're discussing porting it back to a servicing fix for 16.2. |
|
I believe the reference equality is correct; type substitution should not return a new instance when it makes no substitutions. |
Fix #37456
@gafter Looking back at #35284, I still think the use of reference equality is correct, but I want to check with you in case you think we should return to the original
.Equals(..., ConsiderEverything)comparison.