Skip to content

Anonymous methods indices should not be global #3006

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

Closed
nicolasstucki opened this issue Aug 22, 2017 · 0 comments
Closed

Anonymous methods indices should not be global #3006

nicolasstucki opened this issue Aug 22, 2017 · 0 comments

Comments

@nicolasstucki
Copy link
Contributor

class Foo {
  def foo() = {
    def f() = ()
    f()
  }
}
class Bar {
  def foo() = {
    def f() = ()
    f()
  }
}

will have the f lifted as f$1 and f$2, but they should be both f$1 as they are in different classes. Currently, the result of the code depends on the compilation order.

This is a follow-up of #2964.

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