+
+ public function testuint(x:uint=33) {
+ if(x == 33) trace("ok 5/12");
+ }
+ public function testint(x:int=-33) {
+ if(x == -33) trace("ok 6/12");
+ }
+ public function teststring(x:String="33") {
+ if(x == "33") trace("ok 7/12");
+ }
+ public function testfloat(x:Number=33.33) {
+ if(x == 33.33) trace("ok 8/12");
+ }
+ public function testtrue(x:Boolean=true) {
+ if(x == true) trace("ok 9/12");
+ }
+ public function testfalse(x:Boolean=false) {
+ if(x == false) trace("ok 10/12");
+ }
+ public function testnull(x:Object=null) {
+ if(x == null) trace("ok 11/12");
+ }
+ public function testfloat2(x:Number=33) {
+ if(x == 33.0) trace("ok 12/12");
+ }
+
+ public function myfunction(x:String="ok 2/12")