Paul King created GROOVY-7968:

             Summary: A field and a property with the same name aren't flagged 
as a duplicate
                 Key: GROOVY-7968
             Project: Groovy
          Issue Type: Bug
            Reporter: Paul King

Two fields or two properties with the same name cause compilation to fail but 
the following script passes (showing that the backing field has precedence) but 
should not compile:
class HasDate {
  Date d = new Date()
  private Date d = null

assert !new HasDate().d

This message was sent by Atlassian JIRA

Reply via email to