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 assume this is a new incarnation of #6260. Affects 2.11.5
traitXX[+This] extendsAny {
defrepr:This
}
classId[+T](valt:T) extendsAnyValwithXX[Id[T]] {
defrepr=this
}
/*[error] /Users/dlwh/src/breeze/math/src/main/scala/breeze/newindex/xx.scala:31: bridge generated for member method repr: ()breeze.newindex.Id[T] in class Id[error] which overrides method repr: ()This in trait XX[error] clashes with definition of the member itself;[error] both have erased type ()Object[error] def repr = new Id(t)*/
The text was updated successfully, but these errors were encountered:
@retronym said:
Yep, this is simply not possible to support. The fix for #6260 avoids the need for a bridge method in an anoynmous subclass of FunctionN by exactly implementing the interface method. But if you have a named type this isn't possible, as a client of Id#repr will expect repr to return an unboxed Id.
@retronym said:
Well, it is not quite impossible: an alternative encoding for value classes in which the unboxed versions of methods had mangled names, in the same spirit as specialization would allow this.
I assume this is a new incarnation of #6260. Affects 2.11.5
The text was updated successfully, but these errors were encountered: