File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import scala.quoted._
22
33object Test {
44
5- implicit def IntIsQuotable : Quotable [Int ] = new {
5+ implicit def IntIsLiftable : Liftable [Int ] = new {
66 def toExpr (n : Int ): Expr [Int ] = n match {
77 case Int .MinValue => '(Int.MinValue)
88 case _ if n < 0 => '(-(~toExpr(n)))
@@ -12,14 +12,14 @@ object Test {
1212 }
1313 }
1414
15- implicit def BooleanIsQuotable : Quotable [Boolean ] = new {
15+ implicit def BooleanIsLiftable : Liftable [Boolean ] = new {
1616 implicit def toExpr (b : Boolean ) =
1717 if (b) '(true) else ' (false )
1818 }
1919
20- implicit def ListIsQuotable [T : Quotable ]: Quotable [List [T ]] = new {
20+ implicit def ListIsLiftable [T : Liftable ]: Liftable [List [T ]] = new {
2121 def toExpr (xs : List [T ]): Expr [List [T ]] = xs match {
22- case x :: xs1 => ' { ~ implicitly[Quotable [T ]].toExpr(x) :: ~ toExpr(xs1) }
22+ case x :: xs1 => ' { ~ implicitly[Liftable [T ]].toExpr(x) :: ~ toExpr(xs1) }
2323 case Nil => '(Nil: List[T])
2424 }
2525 }
You can’t perform that action at this time.
0 commit comments