dotnet/roslyn
Deconstruction: infer variable types even if the right-hand-side is not fully typed
Aberta
#14.037 aberto em 23 de set. de 2016
Area-CompilersBugConcept-Diagnostic ClarityFeature - Tupleshelp wanted
Métricas do repositório
- Stars
- (20.414 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
var (x, y) = (1, null);
The type inference fails both for x and y, but it should succeed for x.
See CodeGenDeconstructTests.UnassignedUsedInDeconstructionInScript and this discussion https://github.com/dotnet/roslyn/pull/13957/files#r80320718
FYI for @AlekseyTs