Skip to content

Commit 84388e3

Browse files
Merge pull request #7261 from dotty-staging/move-auto-lift
Move quoted.autolift out of the package object
2 parents 9ba1ed3 + afea5a2 commit 84388e3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

library/src-bootstrapped/scala/quoted/package.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ package scala
22

33
package object quoted {
44

5-
object autolift {
6-
given autoToExpr[T](given Liftable[T], QuoteContext): Conversion[T, Expr[T]] = _.toExpr
7-
}
8-
95
implicit object ExprOps {
106
def (x: T) toExpr[T: Liftable](given QuoteContext): Expr[T] = summon[Liftable[T]].toExpr(x)
117

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package scala.quoted
2+
3+
/** Enable implicit conversion from a term of type `T` to an expression of type `Expr[T]` */
4+
object autolift {
5+
/** Implicit conversion from a term of type `T` to an expression of type `Expr[T]` */
6+
given autoToExpr[T](given Liftable[T], QuoteContext): Conversion[T, Expr[T]] = _.toExpr
7+
}

0 commit comments

Comments
 (0)