Skip to content

Recursion limit exceeded on method definition abstract type ascription #5700

Closed
@LPTK

Description

@LPTK

It seems weird that this produces a "Recursion limit exceeded" error:

type M = { type T[+A]; type Ev >: T[Any] <: T[Nothing] }
val M: M = ().asInstanceOf[M]
def dcast(m: M.T[Any]): M.T[Int] = m: M.Ev

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions