[Bindable] public override
I stumbled upon a compiler error when overriding a setter function with the Bindable metadata tag: “overriding a function that is not marked for override”
The answer is short and simple: use –[Bindable] public override– instead of –[Bindable] override public–
It may sound silly but the override actually has to come second in order for the compiler to interpret it properly in this particular situation.
Francesco Picchi:
February 1st, 2009 at 9:07 am
T H A N K S V E R Y M U C H !
You saved me!
George:
May 21st, 2009 at 8:03 am
Is true, i have been stuck running into this … I have now an idea ( ‘oop recomandation’ ) about why the help on flex recomend the “override public” form but i don`t think this is a + nor for as3 lang nor for future of flex
. By the way, in gumbo is the same ?
Anna:
May 26th, 2009 at 4:11 pm
I did not try to reproduce this error with Gumbo. It’s on my TODO list.
hdave:
October 21st, 2010 at 11:26 am
OMG — i thought I was losing my mind. Thanks a ton. BTW- you need to rearrange the public/override on all superclasses in case you’re inheritance tree is more than 2 deep. Has anyone filed on JIRA for this?