Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SAM type closure parameter type inferencing #588

Closed
eric-milles opened this issue May 17, 2018 · 1 comment
Closed

Improve SAM type closure parameter type inferencing #588

eric-milles opened this issue May 17, 2018 · 1 comment
Assignees
Milestone

Comments

@eric-milles
Copy link
Member

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
@eric-milles
Copy link
Member Author

This same type inferencing already exists for:

def m(Sam t) { ... }
m { a, b, c -> ... }

@eric-milles eric-milles self-assigned this Jun 7, 2018
@eric-milles eric-milles added this to the v3.0.0 milestone Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant