Skip to content

Fix type inferencing for type-checked spread-safe method call #1594

@eric-milles

Description

@eric-milles

Consider the following:

class C {
  int m() {}
  int p
}

@TypeChecked
void test(List<C> list) {
  def integers = list*.m()
}

Hover for "integers" shows List<int> when List<Integer> is expected. Hover for "m" or "getP" shows List<int> when int is expected.

image

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions