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 2023/04/15 17:56:00 UTC

[jira] [Updated] (GROOVY-10253) STC: no error for incompatible placeholder assignment

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

Eric Milles updated GROOVY-10253:
---------------------------------
    Priority: Minor  (was: Major)

> STC: no error for incompatible placeholder assignment
> -----------------------------------------------------
>
>                 Key: GROOVY-10253
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10253
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static Type Checker
>    Affects Versions: 4.0.0-beta-1
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>
> Consider the following:
> {code:groovy}
> @groovy.transform.TypeChecked
> def <N extends Number> void test(List<N> list) {
>   List<Integer> ints = list
> }
> {code}
> No STC error is emitted for the incompatible assignment.
> See also GROOVY-7720, GROOVY-9952 and GROOVY-10222.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)