groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <>
Subject Re: DGM wildcards
Date Sat, 08 Dec 2018 13:14:46 GMT
Hi  Marcin,

     As for the generics in Groovy, the issue I mostly wish to fix is
GROOVY-8409 ( ).

     Apart from the discussion in the JIRA issue, here is some more thoughts
on the issue:

     The main cause of the issue is lacking scope info.

     As a note side, the following two L(1st -> String, 2nd -> GString) and
two R (1st -> Integer, 2nd -> Long) should be distinguished too, so only
declaring class is not enough, maybe we need enclosing generics type too.
class Pair<L, R> {}

                   L          R                        L             R
Pair<Pair&lt;String, Integer>, Pair<GString, Long>>

      If the issue could be fixed, it would be great.


Daniel Sun 
Apache Groovy committer 
Twitter: @daniel_sun 

Sent from:

View raw message