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

GROOVY-8310: STC: check closure return type when method type has generic #1078

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

eric-milles
Copy link
Member

Signature for DGM.collectMany needed to be fixed. Once STC checks closure return type compatibility (against method with return type generics), a list returned from the body of a collectMany will not match Closure<Collection<? extedns T>> but does satisfy Closure<? extends Collection<? extedns T>>.

@daniellansun
Copy link
Contributor

LGTM

@daniellansun daniellansun merged commit 4fb4dff into master Nov 15, 2019
@daniellansun
Copy link
Contributor

Merged. Thanks.

@asfgit asfgit deleted the GROOVY-8310 branch November 16, 2019 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants