groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Constance Eustace (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8223) Multiple Return Values @CompileStatic Tuple#<> working
Date Fri, 09 Jun 2017 20:44:18 GMT
Constance Eustace created GROOVY-8223:
-----------------------------------------

             Summary: Multiple Return Values @CompileStatic Tuple#<> working
                 Key: GROOVY-8223
                 URL: https://issues.apache.org/jira/browse/GROOVY-8223
             Project: Groovy
          Issue Type: New Feature
          Components: Compiler
            Reporter: Constance Eustace


@COmpileStatic seems to bomb with 2.4 if I have:

1) a static util function such as:

    class blah {
        static Tuple2<String,Integer> dostuff() { new Tuple2<>("string",55) }
    }

2) invoke via:

def (String mystr, Integer myint) = dostuff()

With @CompileStatic, that all bombs.

Alternatively, tried using getAt overrides, also did not work. 

I would think this could be done... I might try to do it, but I'd like to file the issue





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message