Skip to content

Type params ScalaDoc for PartialFunction.compose incorrectly fused #9430

Open
@scabug

Description

@scabug

The ScalaDoc for scala.PartialFunction.compose incorrectly limits the parameter type parameter for g to the same type parameter as itself.

Current: def compose[A](g: (A) ⇒ A): (A) ⇒ B |
Suggested Correction: def compose[C](g: (C) ⇒ A): (C) ⇒ B |

The parameter descriptions are also misleading.

tparam/param description note
A the type to which function g can be applied Instead of A a new name should be used
g a function A => T1 Should be something similar to a function C => A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions