File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed
Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ abstract class Liftable[T] {
1515 * gives an alternative implementation using just the basic staging system.
1616 */
1717object Liftable {
18-
19- implicit class LiftExprOps [T ](val x : T ) extends AnyVal {
20- def toExpr (implicit liftable : Liftable [T ]): Expr [T ] = liftable.toExpr(x)
21- }
22-
2318 implicit def BooleanIsLiftable : Liftable [Boolean ] = (x : Boolean ) => new ValueExpr (x)
2419 implicit def ByteLiftable : Liftable [Byte ] = (x : Byte ) => new ValueExpr (x)
2520 implicit def CharIsLiftable : Liftable [Char ] = (x : Char ) => new ValueExpr (x)
Original file line number Diff line number Diff line change 1+ package scala
2+
3+ package object quoted {
4+
5+ implicit class LiftExprOps [T ](val x : T ) extends AnyVal {
6+ def toExpr (implicit ev : Liftable [T ]): Expr [T ] = ev.toExpr(x)
7+ }
8+
9+ }
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ object Test {
4242
4343package liftable {
4444 import scala .quoted .Liftable
45- import scala .quoted .Liftable ._
4645 import scala .reflect .ClassTag
4746
4847 object Exprs {
Original file line number Diff line number Diff line change 22import dotty .tools .dotc .quoted .Toolbox ._
33
44import scala .quoted ._
5- import scala .quoted .Liftable ._
65
76object Test {
87 def main (args : Array [String ]): Unit = {
Original file line number Diff line number Diff line change 22import dotty .tools .dotc .quoted .Toolbox ._
33
44import scala .quoted ._
5- import scala .quoted .Liftable ._
65
76object Test {
87 def main (args : Array [String ]): Unit = {
You can’t perform that action at this time.
0 commit comments