Skip to content

Commit 21ad0db

Browse files
committed
Fix test
1 parent b90ed13 commit 21ad0db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/pos/liftable.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import scala.quoted._
22

33
object 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
}

0 commit comments

Comments
 (0)