Skip to content

Weird pretty-printing of by-name parameters in functions #9102

@Jasper-M

Description

@Jasper-M

Minimized example

scala> def foo(a: =>Int) = a.toString
def foo(a: => Int): String

scala> foo
val res1: : Int => String = Lambda$6090/1147769274@9f32bcf

Expectation

(=> Int) => String

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportingError reporting including formatting, implicit suggestions, etcgood first issuePerfect for someone who wants to get started contributing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions