jan_flanders

Untitled

Aug 9th, 2012
86
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 function new(param:Null<Int>)
  4.     {
  5.         super();
  6.        
  7.         var a:Int = null; //On static platforms, null can't be used as basic type Int
  8.         var b:Int = param; // no warning, results in 0
  9.     }
  10.  
  11.     public static function main()
  12.     {
  13.         new Main(null);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment