dotnet/roslyn
Deconstruction: infer variable types even if the right-hand-side is not fully typed
Ouverte
#14 037 ouverte le 23 sept. 2016
Area-CompilersBugConcept-Diagnostic ClarityFeature - Tupleshelp wanted
Métriques du dépôt
- Stars
- (20 414 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
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