codeconsole commented on PR #3092: URL: https://github.com/apache/groovy/pull/3092#issuecomment-7073361897
Merged `master` again in d05d56cca1 to clear the conflict. Master's GROOVY-12602 and GROOVY-12612 make the same lambda-receiver and `this.m()` changes this PR made, so I took master's code in `StaticTypesLambdaWriter` and `TraitReceiverTransformer`, and kept both sets of tests in `TraitWithClosureOrLambda`. Since GROOVY-12672 makes a lambda capture whenever it reads any dynamic variable, the PR's closure-owner check in `StaticTypesLambdaAnalyzer` could no longer be reached, and 7376f5adde removes it. So the PR now changes only the type checker's typing of a trait closure's this object and owner, and the static closure field call; it no longer touches dynamic code. Locally the traits, STC/SC, classgen, bugs and gls suites pass, apart from four tests that fail the same way on `master` (three `lambda getLabel()` cells in `TraitMemberAccessMatrix` still listed as open, and `TraitASTTransformationTest.testSuperTraitStaticAccessorAsPropertyInLambdaStaticallyCompiledByCustomizer`). Check style and CodeNarc pass. @daniellansun, could you take another look? -- 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]
