Eric Milles created GROOVY-11201:
------------------------------------
Summary: STC: assign method pointer to SAM-type
Key: GROOVY-11201
URL: https://issues.apache.org/jira/browse/GROOVY-11201
Project: Groovy
Issue Type: Improvement
Components: Static Type Checker
Affects Versions: 4.0.15, 3.0.19
Reporter: Eric Milles
Assignee: Eric Milles
Consider the following:
{code:groovy}
void setX(String) {}
Consumer<String> c = this.&setX
{code}
With STC enabled, the compiler states {{Closure<Void>}} cannot be assigned to
{{Consumre<String>}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)