[ 
https://issues.apache.org/jira/browse/GROOVY-8629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16500886#comment-16500886
 ] 

Sean Gilligan commented on GROOVY-8629:
---------------------------------------

Thanks [~daniel_sun], I used the workaround from   GROOVY-8590  and tried to 
remove it in Groovy 2.5.0. So I'm good until 2.5.1.

Thanks, also, for the quick fix.

 

> 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)

Reply via email to