-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SemanticModel is unable to infer type of a 'var' pattern variable #12996
Labels
Area-Compilers
Language-C#
New Language Feature - Pattern Matching
Pattern Matching
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Milestone
Comments
AlekseyTs
added
Bug
Language-C#
Area-Compilers
New Language Feature - Pattern Matching
Pattern Matching
labels
Aug 8, 2016
The relevant (missing) code is this: protected virtual TypeSymbol InferTypeOfVarVariable(DiagnosticBag diagnostics)
{
// TODO: this method must be overridden for pattern variables to bind the
// expression or statement that is the nearest enclosing to the pattern variable's
// declaration. That will cause the type of the pattern variable to be set as a side-effect.
return _type;
} |
gafter
changed the title
SemanticModel is unable to infer type of a 'var' declaration variable
SemanticModel is unable to infer type of a 'var' pattern variable
Aug 18, 2016
gafter
added a commit
to gafter/roslyn
that referenced
this issue
Aug 19, 2016
…tern variables. Also eliminates some cases of cascaded definite assignment errors. Fixes dotnet#13219 Fixes dotnet#13009 Fixes dotnet#12996 Fixes dotnet#10446
gafter
added
4 - In Review
A fix for the issue is submitted for review.
and removed
0 - Backlog
labels
Aug 22, 2016
markwilkie
removed
4 - In Review
A fix for the issue is submitted for review.
Bug
labels
Aug 30, 2016
gafter
added
the
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
label
Aug 30, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area-Compilers
Language-C#
New Language Feature - Pattern Matching
Pattern Matching
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
The following assert
fails
The text was updated successfully, but these errors were encountered: