jan_flanders

Untitled

May 18th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //IFoo.hx :
  2. interface IFoo
  3. {
  4.     @:getter(test) function getTest():String;
  5.     @:setter(test) function setTest(v:String):Void;
  6. }
  7. //Please note that the method getTest no longer exists, so do not call it directly.
  8. //( http://haxe.org/manual/tips_and_tricks#flash-specific )
  9. //-----------------------------------------------------
  10.  
  11. //Foo.as
  12. package
  13. {
  14.     public class Foo implements IFoo
  15.     {
  16.         public function Foo()
  17.         {
  18.         }
  19.         public function set test(v:String):void
  20.         {
  21.         }
  22.         public function get test():String
  23.         {
  24.             return "hello";
  25.         }
  26.     }
  27. }
  28. //Interface method getTest in namespace IFoo not implemented by class Foo.
  29. //Interface method setTest in namespace IFoo not implemented by class Foo.
Advertisement
Add Comment
Please, Sign In to add comment