Skip to content

F-bounded polymorphism on objects #9844

Open
@scabug

Description

@scabug
trait X[T <: X[T]] { self: T => }
object Y extends X[Y.type]

This does not compile.

Related discussions:
StackOverflow thread: http://stackoverflow.com/questions/32203867/scala-f-bounded-polymorphism-on-object
@retronym also has a WIP branch to deal with this:
scala/scala@ca4c502

Metadata

Metadata

Assignees

No one assigned

    Labels

    f-boundsfixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions