dotnet/roslyn

Support Dynamic Deconstruction

オープン

#32,709 opened on 2019/01/23

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-CompilersFeature - TuplesFeature Requesthelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

I expect the following to compile:

dynamic data = new { foo = 42 };
var ( foo ) = data;

But instead I get the error:

image

The type of foo can be inferred. It's dynamic!

コントリビューターガイド