Skip to content

Alias to type lambda cannot be used without application #17668

@s5bug

Description

@s5bug

Compiler version

3.2.0, 3.2.1-RC2, 3.2.1

Minimized code

type [-L <: AnyKind, +R <: AnyKind] = [_ <: L] =>> R

type F = Any  Any

Output

-- Error: ----------------------------------------------------------------------
1 |type F = Any  Any
  |         ^^^^^^^^^
  |         type  takes type parameters

Expectation

Scala allows this usage, especially in the context of

trait Free[F <: ((Any  Any)  Any), A]

where

trait Free[F <: /* giant mess of equivalent type lambda */, A]

is equivalent and does compile.

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