Open johnynek opened 8 years ago
I fixed it by making algebra Ring
extend CommutativeGroup
. Note, the code compiled, but I got a class cast exception at runtime.
https://github.com/twitter/algebird/pull/523/files#diff-7347f7f93e4781e9ba09b718ce5d981cR47
Seems like some kind of issue with the inheritance we have set up, and somehow scala thinks things are fine at runtime, but makes some unsafe casts.
It's a little concerning.
The code compiled, but at runtime it failed. This resulted from treating a
Ring[T]
as aRng[T]
. I'll try to repro here.