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._
2
2
3
3
object Test {
4
4
5
- implicit def IntIsQuotable : Quotable [Int ] = new {
5
+ implicit def IntIsLiftable : Liftable [Int ] = new {
6
6
def toExpr (n : Int ): Expr [Int ] = n match {
7
7
case Int .MinValue => '(Int.MinValue)
8
8
case _ if n < 0 => '(-(~toExpr(n)))
@@ -12,14 +12,14 @@ object Test {
12
12
}
13
13
}
14
14
15
- implicit def BooleanIsQuotable : Quotable [Boolean ] = new {
15
+ implicit def BooleanIsLiftable : Liftable [Boolean ] = new {
16
16
implicit def toExpr (b : Boolean ) =
17
17
if (b) '(true) else ' (false )
18
18
}
19
19
20
- implicit def ListIsQuotable [T : Quotable ]: Quotable [List [T ]] = new {
20
+ implicit def ListIsLiftable [T : Liftable ]: Liftable [List [T ]] = new {
21
21
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) }
23
23
case Nil => '(Nil: List[T])
24
24
}
25
25
}
You can’t perform that action at this time.
0 commit comments