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

Eric Milles resolved GROOVY-11208.
----------------------------------
    Fix Version/s: 6.0.0-alpha-1
       Resolution: Fixed

https://github.com/apache/groovy/commit/5597fb6449aac8831378bb77dbd07d71edf7fe5c

> No parse error for interface method with default value
> ------------------------------------------------------
>
>                 Key: GROOVY-11208
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11208
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser-antlr4
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 6.0.0-alpha-1
>
>
> I noticed this syntax mentioned here: 
> https://groovy.apache.org/wiki/GEP-12.html
> Is this supposed to be valid for some case or is it defunct?
> {code:groovy}
> interface I {
>   def m() default { 1 }
> }
> {code}
> It does not produce any parser or compiler errors.  But I don't think the 
> default value saved in {{MethodNode}} is used for anything.



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

Reply via email to