Skip to content

Fix type inferencing for list spread over closure parameters #1484

@eric-milles

Description

@eric-milles

Consider the following:

[['a','b'],['c','d']].each { one, two -> }

Each sub-list is passed in turn. Since more than one parameter is declared in the receiving closure, the list elements are spread across the closure's parameters (see ClosureMetaClass). The expected type of "one" and "two" is String.

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions