• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

Guest
Feb 18, 2012 Feb 18, 2012

Copy link to clipboard

Copied

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:

Views

393

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Feb 18, 2012 Feb 18, 2012

fexfrmatter was messing it up.

never mind.

Votes

Translate

Translate
Guest
Feb 18, 2012 Feb 18, 2012

Copy link to clipboard

Copied

LATEST

fexfrmatter was messing it up.

never mind.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines