You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2019/12/13 20:12:00 UTC

[jira] [Created] (GROOVY-9338) STC: no error for incorrect bounds match

Eric Milles created GROOVY-9338:
-----------------------------------

             Summary: 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


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)