Replace dynamic with object when substituting constraints.#36379
Replace dynamic with object when substituting constraints.#36379AlekseyTs merged 2 commits intodotnet:masterfrom
dynamic with object when substituting constraints.#36379Conversation
Refers to: src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesTests.cs:70292 in 2a68337. [](commit_id = 2a683375dbbebf5c250f453760205e9e8804772f, deletion_comment = False) |
There was a problem hiding this comment.
/// Substitute types, and return the results without duplicates, preserving the original order. [](start = 8, length = 95)
May be worth adding a comment regarding dynamic. #Resolved
jcouv
left a comment
There was a problem hiding this comment.
The new commit (iteration 7) LGTM. Thanks
That is correct. Insignificant Object constraints are dropped. In reply to: 501489776 [](ancestors = 501489776) Refers to: src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesTests.cs:70292 in 2a68337. [](commit_id = 2a683375dbbebf5c250f453760205e9e8804772f, deletion_comment = False) |
|
@cston Please review |
2a68337 to
597d042
Compare
|
@dotnet/roslyn-compiler, @cston Please review, need a second sign-off. |
|
Is this a change that reflects something that is or should be in the specification? |
I do not think so. |
|
@dotnet/roslyn-compiler, @cston Please review, need a second sign-off. |
…-types * dotnet/master: (63 commits) Fix stack overflow in requesting syntax directives (dotnet#36347) crash on ClassifyUpdate for EventFields (dotnet#35962) Disable move type when the options service isn't present (dotnet#36334) Fix crash where type inference doing method inference needs to drop nullability Fix parsing bug in invalid using statements (dotnet#36428) Do not suggest or diagnose use compound assignment when right hand of binary operator is a throw expression Add option to emit nullable metadata for public members only (dotnet#36398) Added null checks on F# external access services (dotnet#36469) Deal with discovering extra .editorconfig files Re-enable MSBuildWorkspaceTests.TestEditorConfigDiscovery Add support to VisualStudioMSBuildInstalled to support minimum versions Fix configuration of accessibilities in editorconfig Shorten a resource ID Revert "Extract the RDT implementation for Misc files and VS open file tracker" Add nullability support to use local function Add EditorFeatures.WPF dependency to F# ExternalAccess Ensure NullableWalker.AsMemberOfType locates the right new container for the member. (dotnet#36406) Replace `dynamic` with `object` when substituting constraints. (dotnet#36379) Add some string descriptions Adjust type of out var based on parameter state (dotnet#36284) ...
Fixes #36276.