I’m not sure why, but I think this is normal. (I think it’s a limitation in 
Flash.)

To use a default, you need to have the superclass support default values as 
well.

> On Aug 28, 2018, at 12:39 PM, Carlos Rovira <[email protected]> wrote:
> 
> I'm finding this error, and don't know if is a problem or not.
> 
> I'm introducing in this signature
> 
> protected function selectionChangeHandler(event:Event):void
> 
> a "= null"
> 
> protected function selectionChangeHandler(event:Event = null):void
> 
> And I get this error:
> 
> Error: Incompatible override.
> 
>        override protected function selectionChangeHandler(event:Event =
> null):void
> 
> Is this normal? or we have a bug in the compiler. For me it seems a normal
> interface method signature but it seems params with default values are not
> supported?
> 
> If so I'll create a github issue in compiler for this
> 
> thanks
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira

Reply via email to