Skip to content

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

Closed
@bjornregnell

Description

@bjornregnell

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions