Skip to content

Improve SAM type closure parameter type inferencing #588

@eric-milles

Description

@eric-milles

Consider the following:

@FunctionalInterface
interface Sam {
  int meth(int a, Long b, java.util.regex.Pattern c);
}
// both cases should inference 'a' as int, 'b' as Long and 'c' as Pattern
Sam type = { a, b, c -> ... }
def type = { a, b, c -> ... } as Sam

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions