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 issue in the compiler #441

Closed
Anastassija opened this issue Dec 13, 2013 · 1 comment
Closed

Scoping issue in the compiler #441

Anastassija opened this issue Dec 13, 2013 · 1 comment
Assignees

Comments

@Anastassija
Copy link
Contributor

The following example crashes:

int f() {
    int g() = 101;
    int () k() {
        int () h() = g;
        return h();
    };
    return k()();
}

value main(list[value] args) {
    return f();
}

This is due to the specifics of the way the compiler handles calls to overloaded functions.

@ghost ghost assigned Anastassija Dec 13, 2013
Anastassija added a commit that referenced this issue Dec 13, 2013
@Anastassija
Copy link
Contributor Author

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant