Skip to content

Fix type inferencing for dynamic closure parameter #1282

@eric-milles

Description

@eric-milles

Consider the following:

def <T> void test(Iterable<T> iterable) {
  Iterator<T> it = iterable.iterator()
  it.forEachRemaining { e-> }
}

The type of "e" is shown as Object or E (if STC is enabled).

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions