dotnet/roslyn

Support Dynamic Deconstruction

开放

#32,709 创建于 2019年1月23日

 (5 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-CompilersFeature - TuplesFeature Requesthelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

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!

贡献者指南