IntelliJ signals fake error on using EventDispatcher methods to Bindable classes/properties

Hi,

I tried to search this before but didn't get any post hitting my search queries.

I have:

public class Person{

     [Bindable]
     public var name:String;

}

and I have another class instantiating Person and doing:

var p:Person = new Person();
p.addEventListener(...);

Idea will signal a "Unresolved function or method" and it makes sense since Person does not implicit implement IEventDispatcher, however this will not be an error during compilation. Any idea how I can avoid this without extending EventDispatcher.

Thank you.

Please sign in to leave a comment.