Skip to content

Fix error reporting for invalid private method call #999

@eric-milles

Description

@eric-milles

Consider the following:

class A {
  private x() {
  }
}
@groovy.transform.CompileStatic
class B extends A {
  private y() {
    x()
  }
}

Method call "x()" is invalid and produces a compiler error. However, the error is associated with line -1 and so it appears at the top of the source unit.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions