Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IFoo.hx :
- interface IFoo
- {
- @:getter(test) function getTest():String;
- @:setter(test) function setTest(v:String):Void;
- }
- //Please note that the method getTest no longer exists, so do not call it directly.
- //( http://haxe.org/manual/tips_and_tricks#flash-specific )
- //-----------------------------------------------------
- //Foo.as
- package
- {
- public class Foo implements IFoo
- {
- public function Foo()
- {
- }
- public function set test(v:String):void
- {
- }
- public function get test():String
- {
- return "hello";
- }
- }
- }
- //Interface method getTest in namespace IFoo not implemented by class Foo.
- //Interface method setTest in namespace IFoo not implemented by class Foo.
Advertisement
Add Comment
Please, Sign In to add comment