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!

貢獻者指南