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 category method pointer #804

Closed
eric-milles opened this issue Jan 31, 2019 · 0 comments
Closed

Type inferencing of category method pointer #804

eric-milles opened this issue Jan 31, 2019 · 0 comments
Assignees
Milestone

Comments

@eric-milles
Copy link
Member

eric-milles commented Jan 31, 2019

Consider the following:

def answer = (-42).&abs
println answer()

This script prints out "42", so taking a method pointer of a category method is supported. However, "abs" currently shows as unknown.

And this as well:

class One804 {
  static def m(self) {}
}
class Two804 {
  void m() {
    use (One804) {
      this.&m // should refer to One804.m(Object)
      this.m() // refers to One804.m(Object)
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant