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

Variable definitions outside package scope #109

Open
sushihangover opened this issue Jan 11, 2016 · 0 comments
Open

Variable definitions outside package scope #109

sushihangover opened this issue Jan 11, 2016 · 0 comments

Comments

@sushihangover
Copy link
Contributor

Valid ActionScript:

package {
import flash.display.Sprite;
public class Main extends Sprite {
    public function Main() {
        once();
        once();
    }
    public function once():void {
        if (!deprecationNotified) {
            deprecationNotified = true;
            trace("The method 'XXX' is deprecated");
        }
    }
}
}
var deprecationNotified:Boolean = false;

Output: (only one trace message)

[trace] The method 'XXX' is deprecated

Found: Starling transformCoords.as

@sushihangover sushihangover changed the title variable definitions outside package scope Variable definitions outside package scope Jan 11, 2016
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

1 participant