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

Anonymous function #1751

Closed
zuozhehao opened this issue Nov 22, 2018 · 7 comments
Closed

Anonymous function #1751

zuozhehao opened this issue Nov 22, 2018 · 7 comments
Labels

Comments

@zuozhehao
Copy link

zuozhehao commented Nov 22, 2018

namespace Work\Abc;

use Work\Task\Timer;

class Test {


    public function a()
    {
        var result;

	Timer::start(function () {

            let result = Timer::wait();

         });	
     }
}

[ERROR] Class name: Work\Timer does not exist in let result = Timer::wait();

@zuozhehao
Copy link
Author

@sergeyklay

@sergeyklay
Copy link
Contributor

@zuozhehao I'll take a look a bit later. Most likely in the next week. Thank you for the report.

@sergeyklay sergeyklay self-assigned this Dec 1, 2018
@sergeyklay sergeyklay removed their assignment Dec 11, 2018
@sergeyklay
Copy link
Contributor

@dreamsxin Could you please take a look

@dschissler

This comment was marked as abuse.

@dreamsxin
Copy link
Contributor

@dschissler You are right.

It's just a matter of parsers.

Warning: Class "xxx" does not exist at compile time in /home/myleft/work/mytest/mytest/app.zep on line 25 [nonexistent-class]

@sergeyklay
Copy link
Contributor

Anyway it is issue I guess (although not critical).

@dschissler

This comment was marked as abuse.

sergeyklay added a commit that referenced this issue Feb 21, 2019
sergeyklay added a commit that referenced this issue Feb 21, 2019
sergeyklay added a commit that referenced this issue Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants