Skip to content

REPL should not show implementation detail of generated default argument helper method #12855

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
bjornregnell opened this issue Jun 17, 2021 · 0 comments · Fixed by #12865
Closed
Assignees
Milestone

Comments

@bjornregnell
Copy link
Contributor

Compiler version

3.0.1-RC1

Minimized code

scala> def f(x: Int, y: Int = 42) = x + y

Output

scala> def f(x: Int, y: Int = 42) = x + y
def f(x: Int, y: Int): Int
def f$default$2: Int @uncheckedVariance

The last line is a leaked implementation detail that should not be shown.

Expectation

scala> def f(x: Int, y: Int = 42) = x + y
def f(x: Int, y: Int): Int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants