Skip to content

Variance checking for higher-kinded types #5100

@odersky

Description

@odersky

Variance is currently not checked in higher-kinded types. The following lines should all give an error but don't:

  type F[-X] = X => X
  type G[+X] = X => X
  type H = [-X] => X => X
  type I = [+X] => X => X

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions