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/01/10 16:17:00 UTC
[jira] [Updated] (GROOVY-10901) Annotation on local variable seen as type annotation
[ https://issues.apache.org/jira/browse/GROOVY-10901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-10901:
---------------------------------
Labels: annotations (was: )
> Annotation on local variable seen as type annotation
> ----------------------------------------------------
>
> Key: GROOVY-10901
> URL: https://issues.apache.org/jira/browse/GROOVY-10901
> Project: Groovy
> Issue Type: Bug
> Reporter: Eric Milles
> Priority: Minor
> Labels: annotations
>
> Consider the following:
> {code:groovy}
> def (int i, @Deprecated Number n) = list
> {code}
> The annotation "@Deprecated" is saved as a type annotation on "Number" and not a local variable annotation on "n".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)