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

[Scala 3] Stepping into a method containing a single pattern matching #334

Open
adpi2 opened this issue Nov 10, 2022 · 0 comments
Open

[Scala 3] Stepping into a method containing a single pattern matching #334

adpi2 opened this issue Nov 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@adpi2
Copy link
Member

adpi2 commented Nov 10, 2022

def foo(x: List[Int]) = foo match
  case x :: y :: tail => ???
  case x :: Nil => ???
  case Nil =>   // <= step into foo stops here
     ???   

When stepping into a method that contains a single pattern matching, the debugger first stops on the last case. Why so? Is this a "bug" in the compiler? Should we skip it in the debugger?

Is it the same in Scala 2?

@adpi2 adpi2 added the bug Something isn't working label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant