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
I was wondering if there could be an alternative syntax that rewrites to
objectgextends (Id~>Option) {
defapply[A](x: Id[A]):Option[A] =Some(x)
// if possible it should allow rewrite to other method names as well:// def run[A](x: Id[A]): Option[A] = Some(x)
}
in situations where the singleton type g.type is required.
i.e. in Shapeless
the[Case1.Aux[g.type, Id[Int], Option[Int]]]
should compile.
The text was updated successfully, but these errors were encountered:
could not find implicit value for parameter t: shapeless.PolyDefns.Case1.Aux[Shape.g.type,shapeless.Id[Int],Option[Int]]
the[Case1.Aux[g.type, Id[Int], Option[Int]]] //does not compile
Currently
kind-projector
allowsto be rewritten as
I was wondering if there could be an alternative syntax that rewrites to
in situations where the singleton type
g.type
is required.i.e. in Shapeless
should compile.
The text was updated successfully, but these errors were encountered: