Christopher Smith created GROOVY-11181:
------------------------------------------

             Summary: Improve STC error message for non-functional interface
                 Key: GROOVY-11181
                 URL: https://issues.apache.org/jira/browse/GROOVY-11181
             Project: Groovy
          Issue Type: Improvement
          Components: Static Type Checker
    Affects Versions: 4.0.15
            Reporter: Christopher Smith


When the STC decides that a method reference is being provided for a type that 
is not a functional interface, it prints the error 

{code}
The argument is a method reference, but the parameter type is not a functional 
interface
{code}

without specifying what it believes the parameter type _is_. It would be 
helpful for troubleshooting to identify the parameter type.

https://github.com/groovy/groovy-eclipse/blob/c2999392e161037435c9479bdb2f71f70a3c0f8b/base/org.codehaus.groovy40/src/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java#L3665



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to