@JonathanChayat Hi Jonathan! I got it working by redefining:
def foo[T, S <: R[_ >: T]](x: T)(implicit ev: S) = 0
Does that help?
@JonathanChayat I actually encountered a similar problem (a bit more complex, maybe) last week, and ended up giving up and using macros. :(
-
-
@JonathanChayat The choice to use macros was partly influenced by -Xlog-implicits apparently being illogical...Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@JonathanChayat ...but not so obviously that I didn't doubt my own reasoning. Alas, such is type inference...Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.