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

BUG: getter and setter in 2 separate interfaces

New Here ,
Oct 22, 2014 Oct 22, 2014

Copy link to clipboard

Copied

In our current product we have 2 interfaces (Interface1 and Interface2), Interface2 extends Interface1.

In Interface1 we set the getter for a property, and in Interface 2 we set the setter for the same property, here is the code:

public interface ILoadable

    {

   function get ColorScheme():String;

    }

public interface IUploadable extends ILoadable
    {  

    function set ColorScheme(value:String):void;

    }

This was working fine in AIR SDK 3.5, but when we upgraded to SDK 15, we get this error:

Error: Cannot override an interface method.  Method ColorScheme conflicts with a method in base interface ILoadable.

Is this a bug in the SDK? or is the new SDK more strict, not allowing a getter and setter being located in separate interfaces/classes?

TOPICS
Development

Views

150

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