Github user danielsun1106 commented on the pull request:

    
https://github.com/apache/groovy/commit/c24c0b7e6a67dcdf277207d4261cfa6f2b55031f#commitcomment-27228409
  
    In 
src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java:
    In 
src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java 
on line 4104:
    To make it clear... `f(2)` is actually `f.call(2)`, `call` method does not 
exist in SAM(e.g. `Function`, `Consumer`), so we have to add `call` method here 
to pass STC.


---

Reply via email to