groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniil Ovchinnikov (JIRA)" <>
Subject [jira] [Created] (GROOVY-7930) @SelfType in hierarchy with an interface in the middle
Date Mon, 05 Sep 2016 17:33:20 GMT
Daniil Ovchinnikov created GROOVY-7930:

             Summary: @SelfType in hierarchy with an interface in the middle
                 Key: GROOVY-7930
             Project: Groovy
          Issue Type: Bug
          Components: Compiler
    Affects Versions: 2.4.7
            Reporter: Daniil Ovchinnikov

interface Self {
    def bar()

trait T {
    def foo() {
        println "foo called"

interface Middle extends T {}

class C implements Middle {}

new C().foo()

Above code compiles fine but fails at run time with:
groovy.lang.MissingMethodException: No signature of method:
is applicable for argument types: () values: []

The compilation should fail like if {{Middle}} was a trait.

This message was sent by Atlassian JIRA

View raw message