dotnet/roslyn
Voir sur GitHubDeconstruction: infer variable types even if the right-hand-side is not fully typed
Open
#14 037 ouverte le 23 sept. 2016
Area-CompilersBugConcept-Diagnostic ClarityFeature - Tupleshelp wanted
Métriques du dépôt
- Stars
- (20 414 stars)
- Métriques de merge PR
- (Merge moyen 6j 17h) (256 PRs mergées en 30 j)
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