Eric Milles created GROOVY-9256:
-----------------------------------

             Summary: trait qualified-super expressions fail when inside closure
                 Key: GROOVY-9256
                 URL: https://issues.apache.org/jira/browse/GROOVY-9256
             Project: Groovy
          Issue Type: Bug
            Reporter: Eric Milles


Consider the following:
{code:groovy}
trait T {
  String string = 'value'
}

class C implements T {
  void meth() {
    { ->
      T.super.setString('other')
      println T.super.getString()
    }()
  }
}

new C().meth()​
{code}

The addition of a closure within the method causes a breakdown of the 
qualified-super method or property access.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to