ActionScript 3 では、省略可能な引数にデフォルト値を指定して宣言する場合、値nullを型付き引数で使用できません。
function Action(Param:int=null){
// 1184: Incompatible default value of type Null where int is expected.
}
function Action(Param:int=0){
// No compiler errors
}
これに対する回避策、またはすべてのデータ型に適用できる汎用値はありますか?