Skip to content

Pretty-printing precedence issue #4068

Closed
@Blaisorblade

Description

@Blaisorblade

Type (Int => Any) => List[Any] is shown without the parens:

scala> :type List(1, 2).map[T = Int]
Int => Any => List[Any]

while parens are omitted correctly here:

scala> val x: Int => (Int => Int) = _ => _ => 1
val x: Int => Int => Int = Lambda$1619/864078397@23310248

that is, the pretty-printer misses associativity of =>.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions