Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main extends flash.display.Sprite
- {
- public var i:Int;
- static function test(?i:Int) return i
- public function new(?i:Int)
- {
- super();
- this.i = i;
- }
- public static function main()
- {
- trace(test());//null
- trace(new Main().i);//0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment