Skip to content

Fix type inferencing and syntax highlighting for read/write property access (i.e. +=, ++, etc.) #1015

@eric-milles

Description

@eric-milles

Consider the following:

class C {
  String foo
  void setFoo(String foo) { this.foo = foo }
}
@groovy.transform.CompileStatic
class D {
  void meth(C c) {
    c.foo += 'x'
    c.with {
      foo += 'y'
    }
  }
}

"c.foo += 'x'" infers as "setFoo" whereas "foo += 'y'" infers as "getFoo" (if it exists) or just property "foo".

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions