Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions library/src/scala/quoted/Liftable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ abstract class Liftable[T] {
* gives an alternative implementation using just the basic staging system.
*/
object Liftable {

implicit class LiftExprOps[T](val x: T) extends AnyVal {
def toExpr(implicit liftable: Liftable[T]): Expr[T] = liftable.toExpr(x)
}

implicit def BooleanIsLiftable: Liftable[Boolean] = (x: Boolean) => new ValueExpr(x)
implicit def ByteLiftable: Liftable[Byte] = (x: Byte) => new ValueExpr(x)
implicit def CharIsLiftable: Liftable[Char] = (x: Char) => new ValueExpr(x)
Expand Down
9 changes: 9 additions & 0 deletions library/src/scala/quoted/package.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package scala

package object quoted {

implicit class LiftExprOps[T](val x: T) extends AnyVal {
def toExpr(implicit ev: Liftable[T]): Expr[T] = ev.toExpr(x)
}

}
1 change: 0 additions & 1 deletion tests/run-with-compiler/quote-lib.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ object Test {

package liftable {
import scala.quoted.Liftable
import scala.quoted.Liftable._
import scala.reflect.ClassTag

object Exprs {
Expand Down
1 change: 0 additions & 1 deletion tests/run-with-compiler/quote-show-blocks-raw.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import dotty.tools.dotc.quoted.Toolbox._

import scala.quoted._
import scala.quoted.Liftable._

object Test {
def main(args: Array[String]): Unit = {
Expand Down
1 change: 0 additions & 1 deletion tests/run-with-compiler/quote-show-blocks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import dotty.tools.dotc.quoted.Toolbox._

import scala.quoted._
import scala.quoted.Liftable._

object Test {
def main(args: Array[String]): Unit = {
Expand Down