[ 
https://issues.apache.org/jira/browse/GROOVY-9338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun resolved GROOVY-9338.
--------------------------------
    Fix Version/s: 3.0.0-rc-3
       Resolution: Fixed

> STC: no error for incorrect bounds match
> ----------------------------------------
>
>                 Key: GROOVY-9338
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9338
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 3.0.0-rc-2
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 3.0.0-rc-3
>
>
> Consider the following:
> {code:groovy}
> @groovy.transform.CompileStatic
> class C {
>   void x(Class<? extends CharSequence> c) {
>   }
>   void y() {
>     def t = (Class<?>) String.class
>     x(t) // should be error for <?> not satisfying <? extends CharSequence>
>   }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to