@@ -23,15 +23,15 @@ object Eql {
23
23
def eqlAny [L , R ]: Eql [L , R ] = derived
24
24
25
25
// Instances of `Eql` for common Java types
26
- implicit def eqlNumber : Eql [Number , Number ] = derived
27
- implicit def eqlString : Eql [String , String ] = derived
26
+ given eqlNumber as Eql [Number , Number ] = derived
27
+ given eqlString as Eql [String , String ] = derived
28
28
29
29
// The next three definitions can go into the companion objects of classes
30
30
// Seq, Set, and Proxy. For now they are here in order not to have to touch the
31
31
// source code of these classes
32
- implicit def eqlSeq [T , U ](implicit eq : Eql [T , U ]): Eql [GenSeq [T ], GenSeq [U ]] = derived
33
- implicit def eqlSet [T , U ](implicit eq : Eql [T , U ]): Eql [Set [T ], Set [U ]] = derived
32
+ given eqlSeq [T , U ](using eq : Eql [T , U ]) as Eql [GenSeq [T ], GenSeq [U ]] = derived
33
+ given eqlSet [T , U ](using eq : Eql [T , U ]) as Eql [Set [T ], Set [U ]] = derived
34
34
35
35
// true asymmetry, modeling the (somewhat problematic) nature of equals on Proxies
36
- implicit def eqlProxy : Eql [Proxy , AnyRef ] = derived
36
+ given eqlProxy as Eql [Proxy , AnyRef ] = derived
37
37
}
0 commit comments