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

conditional_context uses $initial_context #176

Closed
matter123 opened this issue May 18, 2019 · 3 comments
Closed

conditional_context uses $initial_context #176

matter123 opened this issue May 18, 2019 · 3 comments
Labels
🐛 Bug Something isn't working Syntax: C For bugs that only occur in C

Comments

@matter123
Copy link
Collaborator

matter123 commented May 18, 2019

From: microsoft/vscode#73882

Example (C):

int foo() {
    switch(a) {
        case FOO:
            { FileAccessControl.UserFlashAddess = 1; }
        case BAR:
            FileAccessControl.UserFlashAddess = 1;
    };
}

conditional_context's only member is $initial_context. that causes items that are valid inside a function context to no longer be valid in a switch statement.

@matter123 matter123 added the 🐛 Bug Something isn't working label May 18, 2019
@jeff-hykin
Copy link
Owner

I can't reproduce
Screen Shot 2019-05-17 at 9 07 53 PM

@jeff-hykin jeff-hykin added the 🔍 investigating More information is being gathered label May 18, 2019
@matter123
Copy link
Collaborator Author

it's a C issue. member access in c++ works in any scope.

@matter123 matter123 added the Syntax: C For bugs that only occur in C label May 18, 2019
@jeff-hykin
Copy link
Owner

Okay, I pushed a temporary fix for this just now. We can fully fix it once we work on the C syntax.

jeff-hykin added a commit that referenced this issue May 18, 2019
@jeff-hykin jeff-hykin removed the 🔍 investigating More information is being gathered label May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working Syntax: C For bugs that only occur in C
Projects
None yet
Development

No branches or pull requests

2 participants