profound7 / moon-core

moon-core library for haxe
MIT License
43 stars 7 forks source link

nested functions in coroutines referencing a variable from coroutine #3

Closed profound7 closed 8 years ago

profound7 commented 8 years ago

Since variable names within coroutines are renamed to unique names and are hoisted to the top, functions defined within coroutines that uses those closure variables will get variable not found error.

This should be easily fixed in pass_var by going through functions as well.

profound7 commented 8 years ago

TypedExpr solves this.