dotnet/roslyn

Support Dynamic Deconstruction

Aberta

#32.709 aberto em 23 de jan. de 2019

 (5 comentários) (0 reação) (0 responsável)C# (4.257 forks)batch import
Area-CompilersFeature - TuplesFeature Requesthelp wanted

Métricas do repositório

Stars
 (20.414 estrelas)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)

Description

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!

Guia do colaborador