Skip to content

Fix type inferencing for indirect static method under CompileStatic #836

@eric-milles

Description

@eric-milles

Consider the following:

import static B.*
class A {
  boolean isOne() {}
}
class B extends A {
  boolean isTwo() {}
}
@groovy.transform.CompileStatic
void test() {
  one
  two
  isOne()
  isTwo()
}

References to method 'isOne' are showing as underlined (unknown) since they are indirectly available through import static B.*

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions