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

How to use closures? #1317

Closed
jockchou opened this issue Sep 5, 2016 · 1 comment
Closed

How to use closures? #1317

jockchou opened this issue Sep 5, 2016 · 1 comment

Comments

@jockchou
Copy link

jockchou commented Sep 5, 2016

    public function closure(int a)
    {
        return function(int b) {
            return a * b;
        };
    }
zephir build
Zephir\CompilerException: Cannot read variable 'a' because it wasn't declared in
@sergeyklay
Copy link
Contributor

Refs: #1318

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

2 participants