[ 
https://issues.apache.org/jira/browse/GROOVY-7036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15073528#comment-15073528
 ] 

ASF GitHub Bot commented on GROOVY-7036:
----------------------------------------

GitHub user shils opened a pull request:

    https://github.com/apache/groovy/pull/228

    GROOVY-7036: An interface implementation (override) with a method inc…

    …luding a default parameter value does not compile

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shils/groovy GROOVY-7036

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/228.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #228
    
----
commit 5e114cb0e86cbaa66e50080bc5fe7dd444d98ef3
Author: Shil Sinha <[email protected]>
Date:   2015-12-29T05:43:50Z

    GROOVY-7036: An interface implementation (override) with a method including 
a default parameter value does not compile

----


> An interface implementation (override) with a method including a default 
> parameter value does not compile
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-7036
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7036
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.3.6
>         Environment: JDK 1.7.0_60
>            Reporter: Martin Ahrer
>
> A complete (gradle based) project to demonstrate the problem has been 
> provided at https://github.com/MartinAhrer/bug-groovy-2.3-override.
> {code}
> interface TemplatedInterface<T> {
>     T execute(Map argument)
> }
> class TemplatedInterfaceImplementation implements TemplatedInterface<String>{
>     // This won't compile with groovy 2.3.x when adding a default argument 
> value
>     @Override
>     String execute(Map argument = [:]) {
>         return null
>     }
> }
> {code}
> This kind of relates to GROOVY-6654.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to