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/10/26 17:28:00 UTC
[jira] [Created] (GROOVY-11208) No parse error for interface method with default value
Eric Milles created GROOVY-11208:
------------------------------------
Summary: 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
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)