Skip to content

Fix type inferencing for this and super trait method calls #750

@eric-milles

Description

@eric-milles

Consider the following:

trait Auditable {
  boolean audit() {
    if (check()) { // showing as unknown (underlined)
      ;
    }
  }
  private boolean check() {
    true
  }
}
trait Auditable {
  boolean audit() {
    if (check()) { // showing as unknown (underlined)
      ;
    }
  }
  private static boolean check() {
    true
  }
}
trait Auditable extends Checkable {
  boolean audit() {
    if (check()) { // showing as unknown (underlined)
      ;
    }
  }
}
trait Checkable {
  static boolean check() {
    true
  }
}

These are derived from GROOVY-8272 and GROOVY-8854.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions