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

Error: parse compiler const #45

Closed
SlavaRa opened this issue Jan 22, 2015 · 0 comments
Closed

Error: parse compiler const #45

SlavaRa opened this issue Jan 22, 2015 · 0 comments

Comments

@SlavaRa
Copy link
Member

SlavaRa commented Jan 22, 2015

For example: if i do parse code
package {
import flash.display.Sprite;

/**
 * @author SlavaRa
 */
public class Main extends Sprite {

    public function Main() {
        if(CONFIG::debug) {
            trace("debug");
        } else {
            trace("release");
        }
    }
}

}

i get result:
ERRORS: These files were not written due to source parsing errors:
In D:/projects/fd-dev-as3/./src/Main.as(10) : Unexpected debug

i think that this code can be parsed to

if debug

trace("debug");

else

trace("release");

end

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

No branches or pull requests

1 participant