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

Print owner of bind symbol with -Yprint-debug-owners #16854

Merged

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Feb 8, 2023

Compiling with -Yprint-debug-owners now prints the owners of Bind trees.

Before

class Foo() extends Object() {
  [owner = class Foo]def fooImpl: Int =
    1:Int match {
      case x @ y @ _:Int => 0
  }
}

After

class Foo() extends Object() {
  [owner = class Foo]def fooImpl: Int =
    1:Int match {
      case [owner = method fooImpl]x @ [owner = method fooImpl]y @ _:Int => 0
    }
}

@nicolasstucki nicolasstucki added the fasttrack Simple fix. Reviewer should merge or apply additional changes directly. label Feb 8, 2023
@nicolasstucki nicolasstucki merged commit 6183cde into scala:main Feb 8, 2023
@nicolasstucki nicolasstucki deleted the debug-owners-of-bind-symbols branch February 8, 2023 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fasttrack Simple fix. Reviewer should merge or apply additional changes directly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants