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] [Created] (GROOVY-10901) Annotation on local variable seen as type annotation
Eric Milles created GROOVY-10901:
------------------------------------
Summary: 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
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)