Skip to content

Documentation states that "type inference proceeds one parameter list at a time" but this is not true in Scala 3. #2648

Open
@smarter

Description

@smarter

This is stated in https://docs.scala-lang.org/tour/multiple-parameter-lists.html but while this mostly applies to Scala 2, it doesn't apply at all to Scala 3 where type variables are inferred as late as possible (but not later than needed) regardless of parameter lists. I discuss the differences between Scala 2 and 3 here in my talk on type inference: https://youtu.be/lMvOykNQ4zs?t=1216

Metadata

Metadata

Assignees

Labels

Bugscala-3scala 3 documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions