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
@okomok said: Fold is parameterized by U, which means a type-level generic-method.
Scalac, for now, seems not to work well with any form of type-level generics.
I don't know whether this is a bug or limitation of type-system of scala, though.
BTW, you can find a painful workaround: design guidelines
The following works fine:
But using Apply[N] instead of Drop[N]#Head (which should be the identical) fails:
It seems that a type xs#Apply[...] is always resolved to xs#Head, completely ignoring the Drop[N] part.
Using a type lambda instead of plain application as a work-around:
The text was updated successfully, but these errors were encountered: