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.

0

Looks like a bug in IDEA. Please open respective issue: http://youtrack.jetbrains.net

0
Avatar
Permanently deleted user
0

请先登录再写评论。