lundi 29 février 2016

Implicit coercion of a value of type Vector.

I've got line of code

var enemies:Vector.<Unit>    = _map.getEnemiesForFraction(_fraction);

where _map.getEnemiesForFraction(_fraction) is

public function getEnemiesForFraction(fraction:String):Vector.<Unit>
{
    return _enemiesByFraction[fraction];
}

It compiles and works fine, but FlashBuilder keep annoying me with error

Implicit coercion of a value of type Vector.<Unit> to an unrelated type Vector.<Unit>.

Why? How to get rid of this? Neither restart nor clean, doesn't work.

Aucun commentaire:

Enregistrer un commentaire