I'm sure there is a reason for this, but I don't know it and can't seem to
find it googling.
I have:
ClassA
public var iAmPublic : int = 0;
ClassB extends ClassA
public function get iAmPublic() : int { return 9; }
- or -
override public function get iAmPublic() : int { return 9; }
Both compile error out. Either with I must override the function or invalid
override.
If I change ClassA to have public function get/set .... it will work fine.
I realize that behind the scenes a get/set must be created for me, but it
seems to me the compiler should be smart enough to handle this. The big
problem is that I'm dealing with a swc that has the property as a public var
so I can't override it.
Anyone have any ideas? I can go to the person and have them change it to do
getter/setter, but doesn't this seem like something that should just work?
Thanks,
Dale
-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line
For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------