[
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)