Skip to content

Fix type inferencing for private field of super type #815

@eric-milles

Description

@eric-milles

Consider the following:

class Foo {
  private String field
}
class Bar extends Foo {
  def baz() {
    field
  }
}

Execution of "new Bar().baz()" results in: groovy.lang.MissingPropertyException: No such property: field for class: Bar

However, type inferencing shows that the occurrence of "field" within baz() infers to "Foo.field".

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions