1 Reply Latest reply on Feb 18, 2012 8:43 AM by levancho

    {Possible Bug} Method parameters inside Interface method is interpreted incorrectly by  implemetor

    levancho Level 3

      Steps to reproduce:

      1.my version s FLash builder 4.6

       

      create Interface:

      package managers {

       

       

          public interface ICommand {

             

             

              function get listener() : Function ;

              function get params() : IMap;

             

          }

      }

      2.

       

      implement interface:

      package managers {

       

       

          public class Command implements ICommand {

       

       

         // I am not declaring listener and params here,  but code compiles file and there is no redmarker errors either.

       

              public function Command (listenerParam:Function, params:IMap):Boolean {

                  this.listener = listenerParam;

                  this.params = params;

       

              }

          }

      }

       

       

      this cod eabove compiles without errors: