Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.6.0.Release
-
Fix Version/s: 2.6.1.Release
-
Component/s: Inferencing Engine
-
Labels:None
-
Number of attachments :
Description
class Bingo {
def foo() {
def x = [ "a", "ab", "bc"]
def z = x - x
}
}
Type of z is List<Object>... should be List<String>
In general I think one shoul assume the elements to be of the same type as the elements in the first collection. Since you are removing elements from the list, so it can at most have the same elements as in the original collection.
This is one of the things I have been working on.