Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
eric-milles opened this issue Jan 30, 2019 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

eric-milles commented Jan 30, 2019

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.

@eric-milles eric-milles self-assigned this Jan 31, 2019
@eric-milles eric-milles added this to the v3.3.0 milestone Jan 31, 2019
@eric-milles eric-milles changed the title Type inferencing of invalid method references Type inferencing of missing properties that look like method references Jan 31, 2019
eric-milles added a commit that referenced this issue Feb 1, 2019
w/o call args.  This excludes static imports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant