groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <>
Subject [jira] [Created] (GROOVY-8735) abstract method in trait can have a body
Date Wed, 08 Aug 2018 14:24:00 GMT
Paul King created GROOVY-8735:

             Summary: abstract method in trait can have a body
                 Key: GROOVY-8735
             Project: Groovy
          Issue Type: Improvement
            Reporter: Paul King

The extra braces are detected in antlr2 and for abstract classes but not traits with Parrot:
abstract class Foo {
   abstract foo() // WORKS! braces prohibited here as expected

trait Bar {
   abstract bar() {} // ERROR? braces allowed here but should not

assert Foo.methods*.name.contains('foo')
assert Bar.methods*.name.contains('bar')

This message was sent by Atlassian JIRA

View raw message