Skip to content

Would be nice to make it work with Abstract Type Members #9

@cgarciaq

Description

@cgarciaq

It does not work with abstract type members. The following code is not working, but would be very nice if it did:

trait Resource {
  type T <: Product
  
  def resourceForm = Form(CaseClassMapping.mapping[T])
  ...
}

trait ApplesComponent extends Resource {
  type T = Apple

  case class Apple(size:Int, color: String)
  ...
}

I think it can be achieved using WeakTypeTag, but I'm not sure.

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