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] {
15
15
* gives an alternative implementation using just the basic staging system.
16
16
*/
17
17
object 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
-
23
18
implicit def BooleanIsLiftable : Liftable [Boolean ] = (x : Boolean ) => new ValueExpr (x)
24
19
implicit def ByteLiftable : Liftable [Byte ] = (x : Byte ) => new ValueExpr (x)
25
20
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 {
42
42
43
43
package liftable {
44
44
import scala .quoted .Liftable
45
- import scala .quoted .Liftable ._
46
45
import scala .reflect .ClassTag
47
46
48
47
object Exprs {
Original file line number Diff line number Diff line change 2
2
import dotty .tools .dotc .quoted .Toolbox ._
3
3
4
4
import scala .quoted ._
5
- import scala .quoted .Liftable ._
6
5
7
6
object Test {
8
7
def main (args : Array [String ]): Unit = {
Original file line number Diff line number Diff line change 2
2
import dotty .tools .dotc .quoted .Toolbox ._
3
3
4
4
import scala .quoted ._
5
- import scala .quoted .Liftable ._
6
5
7
6
object Test {
8
7
def main (args : Array [String ]): Unit = {
You can’t perform that action at this time.
0 commit comments