dotnet / dotnet/csharpstandard

11.2.9 Reason for conversion from expression rather than type

Open
#111 3 comments 0 reactions 0 assignees View on GitHub
type: clarity
Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Description

12.2.9 starts:

> An implicit dynamic conversion exists from an expression of type dynamic to any type `T`.

I seem to remember there are subtle reasons which this isn't:

> An implicit dynamic conversion exists from the dynamic type to any type T.

I suspect it's because there'd then be an implicit conversion both ways. Is that the case? Is this worth an explanatory note?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.