Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Maxim Mossienko
Subsystem
Flex Support
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Per Olesen
    3 years ago (16 Sep 2008 23:59)
  • Updated by   root
    2 years ago (17 Jan 2010 21:05)
  • Jira: IDEADEV-30250
    (history, comments)
 
IDEA-45692 ArrayCollection not assignable to IList even though it is
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Given this little class:

package testing {
import mx.collections.IList;
import mx.collections.ArrayCollection;
public class Clazz {
public var aList : IList = new ArrayCollection();

public function foo() : void {
var anotherArray : ArrayCollection = new ArrayCollection();
aList = anotherArray;

}
}
}

IDEA will warn me that the initializer assigning aList is "not assignable to IList", even though ArrayCollection inherits ListCollectionView, which does implement IList. About the same warning appears in the foo() method, though not in an initializer. It compiles without problems!

Issue was resolved
Comments (5)
 
History
 
Linked Issues (?)
 
Maxim Mossienko
  Maxim Mossienko
17 Sep 2008 19:07
3 years ago
FYI, this is result of new feature being put it, namely, IDEA-37086, there was no warning before (e.g. in IDEA 7) since there was not such validation
Per Olesen
  Per Olesen
18 Sep 2008 01:52
3 years ago
Okay, but the warning is still incorrect as it stands now, isn't it?
Maxim Mossienko
  Maxim Mossienko
25 Sep 2008 19:39
3 years ago
I saw your public comment about this basic thing is not working properly, and my previous comment clarifies things a little bit :)
I confirm that this issue should be fixed
Per Olesen
  Per Olesen
26 Sep 2008 00:56
3 years ago
Cool!
Maxim Mossienko
  Maxim Mossienko
27 Sep 2008 16:05
3 years ago
There can be some other case when the problem will remain, please, post, again in such case