[
https://issues.apache.org/jira/browse/GROOVY-11208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles reassigned GROOVY-11208:
------------------------------------
Assignee: Eric Milles
> 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
>
> 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)