History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-30250
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Per Olesen
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

ArrayCollection not assignable to IList even though it is

Created: 16 Sep 08 22:59   Updated: 27 Sep 08 15:05
Component/s: Flex Support
Fix Version/s: Diana 8858

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 8,792
Fixed in build: 8,837


 Description  « Hide
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!



 All   Comments   Work Log   Change History      Sort Order:
Maxim Mossienko - 17 Sep 08 18:07
FYI, this is result of new feature being put it, namely, IDEADEV-14428, there was no warning before (e.g. in IDEA 7) since there was not such validation

Per Olesen - 18 Sep 08 00:52
Okay, but the warning is still incorrect as it stands now, isn't it?

Maxim Mossienko - 25 Sep 08 18:39
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 - 25 Sep 08 23:56
Cool!

Maxim Mossienko - 27 Sep 08 15:05
There can be some other case when the problem will remain, please, post, again in such case