Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main extends flash.display.Sprite
- {
- public function new(param:Null<Int>)
- {
- super();
- var a:Int = null; //On static platforms, null can't be used as basic type Int
- var b:Int = param; // no warning, results in 0
- }
- public static function main()
- {
- new Main(null);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment