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

Can't access get findEnemies of that type: undefined #163

Open
nwinter opened this issue May 22, 2016 · 1 comment
Open

Can't access get findEnemies of that type: undefined #163

nwinter opened this issue May 22, 2016 · 1 comment
Assignees
Labels

Comments

@nwinter
Copy link
Contributor

nwinter commented May 22, 2016

In Ace of Coders, this code errors out:

while True:
    outer()
def outer():
    enemies = hero.findEnemies()

screenshot 2016-05-22 13 47 04

If I def outer() before the while True:, it works.

Is JS-style hoisting not working? If so, can we make it work, or can we get a better error message?

@nwinter
Copy link
Contributor Author

nwinter commented May 23, 2016

Maybe related to differentmatt/filbert#55?

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

2 participants