jan_flanders

Untitled

Aug 9th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Main extends flash.display.Sprite
  2. {
  3.     public var i:Int;
  4.     static function test(?i:Int) return i
  5.     public function new(?i:Int)
  6.     {
  7.         super();
  8.         this.i = i;
  9.     }
  10.  
  11.     public static function main()
  12.     {
  13.         trace(test());//null
  14.         trace(new Main().i);//0
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment