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

Members references without Self cause C errors #162

Open
AZHenley opened this issue May 1, 2019 · 0 comments
Open

Members references without Self cause C errors #162

AZHenley opened this issue May 1, 2019 · 0 comments

Comments

@AZHenley
Copy link
Owner

AZHenley commented May 1, 2019

class foo {
    var num : int = 0;
    func test1() int {
        return num; // C error! num is not in scope.
    }
    func test2() int {
        return self.num; // OK!
    }
}```
@AZHenley AZHenley added this to the Complete code generator milestone May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant