codeconsole commented on PR #3114:
URL: https://github.com/apache/groovy/pull/3114#issuecomment-7075771868

   @daniellansun Thanks for the approval. I merged current master (5a45f2e0e3) 
in a91135aea6, and the four trait/lambda tests pass now. Since your check, 
GROOVY-12519 (4b33d54201) had brought in one conflict, in 
`StaticTypeCheckingVisitor.checkSuperCallFromClosure`. Master returns early for 
a static target (no `super$` helper: `invokestatic` works from any class), and 
this branch had extended the method to `Outer.super.m()`. I kept both, with the 
static check first, so it covers `Outer.super` too. 5660802cab tests 
`Outer.super.sm()` and `Outer.super.first()` from an inner class, in plain 
code, closures, lambdas and nested closures. Under `@CompileStatic` they fail 
without the check, with `IncompatibleClassChangeError` and `NoSuchMethodError`. 
The extension-method test leaves out a lambda: `() -> first()`, `() -> 
Outer.this.first()` and `() -> Outer.super.first()` throw `GroovyCastException` 
on master as well. `StaticTypesLambdaAnalyzer` rewrites the call to 
`List.first()`, which is a
  separate issue. #3049 is still open and will hit the same conflict when it 
merges master.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to