Skip to content

Port https://github.com/dotnet/roslyn/pull/72964 to release/dev17.10#73058

Merged
AlekseyTs merged 1 commit intodotnet:release/dev17.10from
AlekseyTs:Issue72750_dev17.10
Apr 17, 2024
Merged

Port https://github.com/dotnet/roslyn/pull/72964 to release/dev17.10#73058
AlekseyTs merged 1 commit intodotnet:release/dev17.10from
AlekseyTs:Issue72750_dev17.10

Conversation

@AlekseyTs
Copy link
Contributor

Restore dynamic as result type of some operations involving dynamic arguments (#72964)

Fixes #72750.

For C# 12 language version: behavior of the compiler in regards to deciding between whether binding should be static or dynamic is the same as behavior of C# 12 compiler. As a result, for affected scenarios, what used to have dynamic type in C# 12 compiler will have dynamic type when C# 12 language version is targeted.

For newer language versions: invocations statically bound in presence of dynamic arguments should have dynamic result if their dynamic binding succeeded in C# 12. Corresponding spec update - dotnet/csharplang#8027 at commit 8.

Related to #33011, #72906, #72912, #72913, #72914, #72916, #72931.

…c` arguments (dotnet#72964)

Fixes dotnet#72750.

For C# 12 language version: behavior of the compiler in regards to deciding between whether binding should be static or dynamic is the same as behavior of C# 12 compiler. As a result, for affected scenarios, what used to have `dynamic` type in C# 12 compiler will have `dynamic` type when C# 12 language version is targeted.

For newer language versions: invocations statically bound in presence of dynamic arguments should have dynamic result if their dynamic binding succeeded in C# 12. Corresponding spec update - dotnet/csharplang#8027 at commit 8.

Related to dotnet#33011, dotnet#72906, dotnet#72912, dotnet#72913, dotnet#72914, dotnet#72916, dotnet#72931.
@AlekseyTs AlekseyTs requested a review from a team as a code owner April 16, 2024 23:42
@ghost ghost added the untriaged Issues and PRs which have not yet been triaged by a lead label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants