Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static function test(?i:Int, ?s:String) {
- trace(test()); // i: null, s: null
- trace(test(1)); // i: 1, s: null
- trace(test(1, "foo")); // i: 1, s: foo
- trace(test("foo")); // i: null, s: foo
- }
- static public function main(){
- trace(test());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement