Skip to content
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

Scoping for pattern variables in an expression-bodied local function #8810

Closed
gafter opened this issue Feb 17, 2016 · 0 comments
Closed

Scoping for pattern variables in an expression-bodied local function #8810

gafter opened this issue Feb 17, 2016 · 0 comments
Assignees
Labels
Area-Compilers Bug New Language Feature - Pattern Matching Pattern Matching Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented Verification Not Required

Comments

@gafter
Copy link
Member

gafter commented Feb 17, 2016

We should (implement if necessary and) test the correctness of pattern variables defined at the top level of a local function

public static void Main(string[] args)
{
    bool Three(object o) => o is int i && i == 3;
}
@gafter gafter modified the milestone: 2.0 (Preview) Feb 18, 2016
@jaredpar jaredpar added the Bug label Feb 24, 2016
AlekseyTs added a commit to AlekseyTs/roslyn that referenced this issue Feb 27, 2016
@AlekseyTs AlekseyTs added the Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented label Feb 29, 2016
@AlekseyTs AlekseyTs assigned gafter and unassigned AlekseyTs Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Bug New Language Feature - Pattern Matching Pattern Matching Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented Verification Not Required
Projects
None yet
Development

No branches or pull requests

3 participants