You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/01/27 00:45:01 UTC
[jira] [Closed] (GROOVY-9338) STC: no error for incorrect bounds
match
[ https://issues.apache.org/jira/browse/GROOVY-9338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-9338.
-----------------------------
> 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)