[
https://issues.apache.org/jira/browse/GROOVY-8629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Sun resolved GROOVY-8629.
--------------------------------
Resolution: Fixed
Fixed by
https://github.com/apache/groovy/commit/effb9d3daae7af65f15c8deafb72d4a74c4b2d50
> Groovy STC fails on the nested method call in constructor call
> --------------------------------------------------------------
>
> Key: GROOVY-8629
> URL: https://issues.apache.org/jira/browse/GROOVY-8629
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Affects Versions: 2.5.0-rc-3, 2.5.0
> Environment: I can reproduce from the command line with:
> groovy mapComparisonTest.groovy
> With Groovy 2.5.0 and Java 1.8.0_172 on macOS High Sierra.
> Reporter: Sean Gilligan
> Assignee: Daniel Sun
> Priority: Major
> Fix For: 2.6.0-alpha-4, 3.0.0-alpha-3, 2.5.1
>
> Attachments: mapComparisonTest.groovy
>
>
> The error returns on line 22 of the attached file:
> return new IntegerPairIterator(unionKeys.iterator())
> Assigning to a temporary variable and returning on a second line OR removing
> @StaticCompile will fix the problem.
> I thought this was related to GROOVY-8590 because it first occurred in Groovy
> 2.5.0-rc-3, but it was not fixed in Groovy 2.5.0.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)