Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.19, 4.0.15
-
None
Description
Consider the following:
import java.util.function.Consumer void setX(String string) { } Consumer<String> c = this.&setX
With STC enabled, the compiler states Closure<Void> cannot be assigned to Consumre<String>.
Attachments
Issue Links
- is related to
-
GROOVY-10975 STC rejects program when passing method reference in parameterized function
- Closed