Skip to content

Fix type inferencing for each and eachWithIndex extension methods #1339

@eric-milles

Description

@eric-milles

Consider the following:

class C {
  def m(boolean[] array) {
    array.eachWithIndex { b, i ->
    }
  }
}

The DGM is defined this way, which fails to assist the IDE in type inferencing: <T> T eachWithIndex(T self, /*@ClosureParams(value=FromString.class, options="?,Integer")*/ Closure closure)

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions