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

Eric Milles closed GROOVY-5246.
-------------------------------
    Resolution: Information Provided

> Inline Enum definition as method-argument-type
> ----------------------------------------------
>
>                 Key: GROOVY-5246
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5246
>             Project: Groovy
>          Issue Type: New Feature
>          Components: Compiler
>            Reporter: Peter Rader
>            Priority: Major
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> Can we get a new feature to groovy that limits election of param-definitions 
> to a few specific values?
> i.e.:
> def foobar (enum{ASC,DESC} sortDirection){...}
> foobar(ASC) // ok
> foobar(DESC) // ok
> foobar(1) // illegal
> foobar(null) // well, i dont realy care



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to