Skip to content

Commit 1de97dc

Browse files
committed
Use delegates for Liftables
1 parent b9718c7 commit 1de97dc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

library/src/scala/quoted/Liftable.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ trait Liftable[T] {
1717
*/
1818
object Liftable {
1919

20-
implicit val Liftable_Boolean_delegate: Liftable[Boolean] = new PrimitiveLiftable
21-
implicit val Liftable_Byte_delegate: Liftable[Byte] = new PrimitiveLiftable
22-
implicit val Liftable_Short_delegate: Liftable[Short] = new PrimitiveLiftable
23-
implicit val Liftable_Int_delegate: Liftable[Int] = new PrimitiveLiftable
24-
implicit val Liftable_Long_delegate: Liftable[Long] = new PrimitiveLiftable
25-
implicit val Liftable_Float_delegate: Liftable[Float] = new PrimitiveLiftable
26-
implicit val Liftable_Double_delegate: Liftable[Double] = new PrimitiveLiftable
27-
implicit val Liftable_Char_delegate: Liftable[Char] = new PrimitiveLiftable
28-
implicit val Liftable_String_delegate: Liftable[String] = new PrimitiveLiftable
20+
delegate Liftable_Boolean_delegate for Liftable[Boolean] = new PrimitiveLiftable
21+
delegate Liftable_Byte_delegate for Liftable[Byte] = new PrimitiveLiftable
22+
delegate Liftable_Short_delegate for Liftable[Short] = new PrimitiveLiftable
23+
delegate Liftable_Int_delegate for Liftable[Int] = new PrimitiveLiftable
24+
delegate Liftable_Long_delegate for Liftable[Long] = new PrimitiveLiftable
25+
delegate Liftable_Float_delegate for Liftable[Float] = new PrimitiveLiftable
26+
delegate Liftable_Double_delegate for Liftable[Double] = new PrimitiveLiftable
27+
delegate Liftable_Char_delegate for Liftable[Char] = new PrimitiveLiftable
28+
delegate Liftable_String_delegate for Liftable[String] = new PrimitiveLiftable
2929

3030
private class PrimitiveLiftable[T <: Unit | Null | Int | Boolean | Byte | Short | Int | Long | Float | Double | Char | String] extends Liftable[T] {
3131
/** Lift a primitive value `n` into `'{ n }` */

0 commit comments

Comments
 (0)