You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
You can try https://github.com/Iterable/play-formnolia which uses Magnolia under the hood, it might work with abstract types (though I haven't personally tried it for that use case)
It does not work with abstract type members. The following code is not working, but would be very nice if it did:
I think it can be achieved using WeakTypeTag, but I'm not sure.
The text was updated successfully, but these errors were encountered: