Skip to content

Type inferencing of missing properties that look like method references #802

@eric-milles

Description

@eric-milles

Consider the following:

class Pogo {
  def bar() {}
  void meth() {
    def baz = bar
    bar = baz
    baz = this.bar
    this.bar = baz
  }
}

None of the "bar" tokens within meth() refer to "def bar()" method. They are property references. All should infer as unknown in this case. At runtime they all produce a MissingPropertyException.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions