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
Copy file name to clipboardexpand all lines: Modules/RDTs/src/main/scala/rdts/base/Lattice.scala
+5-5
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ object Lattice {
50
50
/** Some types have multiple structural representations for semantically the same value, e.g., they may contain redundant or replaced parts. This can lead to semantically equivalent values that are not structurally equal. Normalize tries to fix this. */
51
51
defnormalize[A:Lattice](v: A):A= v `merge` v
52
52
53
-
defdiff[A: {Lattice, Decompose}](state: A, delta: A):Option[A] = {
53
+
defdiff[A: {Lattice as A, Decompose}](state: A, delta: A):Option[A] = {
// Thus, we put the extension into this implicit object, when `Lattice.syntax` is imported (or otherwise in the implicit scope) then it is eligible as the receiver for the extension method rewrite. For some reason, this never causes conflicts even if multiple objects are named `syntax` (as opposed to name conflicts with the extension method, which does cause conflicts).
60
60
// also, intellij does find these, but not the ones on the trait … ?
0 commit comments