Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.1Release
-
Fix Version/s: 2.1.2Release
-
Component/s: Editor
-
Labels:None
-
Number of attachments :
Description
I found this code snippet lying around and I wondered if inferencing worked correctly in Groovy-Eclipse:
class MissingInferenceTest {
Map<String, Map<Integer, List<Date>>> factoryMethod() { [:] }
def myMethod() {
Map<String, Map<Integer, List<Date>>> dataTyped = [:]
def dataInferred = new HashMap<String, Map<Integer, List<Date>>>()
def dataNotInferred = factoryMethod()
println dataTyped ['foo'][5][2].time()
println dataInferred ['foo'][5][2].time()
println dataNotInferred['foo'][5][2].time()
}
}
Unfortunately, no. The time() references are all underlined.
Fix committed with tests