dotnet / dotnet/csharpstandard

Explicit dynamic conversion is redundant

Open
#276 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Description

We have
- An [implicit dynamic conversion](https://github.com/dotnet/csharplang/blob/master/spec/conversions.md#implicit-dynamic-conversions) from an expression of type `dynamic` to any type T.
- All of the implicit conversions are also [explicit conversions](https://github.com/dotnet/csharplang/blob/master/spec/conversions.md#explicit-conversions).
- An [explicit dynamic conversion](https://github.com/dotnet/csharplang/blob/master/spec/conversions.md#explicit-dynamic-conversions) from an expression of type `dynamic` to any type T.

This list is redundant, as it includes the conversion "from an expression of type `dynamic` to any type T" twice. I suspect the explicit dynamic conversion is supposed to be a conversion from type rather than a conversion from expression.

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.