You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2019/11/18 16:18:42 UTC

[GitHub] [groovy] eric-milles opened a new pull request #1092: STC: isLHSOfEnclosingAssignment returns true for ++or -- on variable expression

eric-milles opened a new pull request #1092: STC: isLHSOfEnclosingAssignment returns true for ++or -- on variable expression
URL: https://github.com/apache/groovy/pull/1092
 
 
   `PV_FIELDS_MUTATION` is recorded instead of `PV_FIELDS_ACCESS`
   
   This is a first step towards fixing:
   ```groovy
       @NotYetImplemented // GROOVY-7304
       void testShouldGoThroughPrivateBridgeAccessorWithWriteAccess() {
           ['++i', 'i++', 'i+=1', 'i=i+1'].each {
               assertScript """
                   class Foo {
                       private int i = 1
                       def m() { new String().with { $it } }
                   }
                   assert new Foo().m() == 2
                   class Bar extends Foo {}
                   assert new Bar().m() == 2
               """
           }
       }
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services