We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba1ed3 commit afea5a2Copy full SHA for afea5a2
library/src-bootstrapped/scala/quoted/package.scala
@@ -2,10 +2,6 @@ package scala
2
3
package object quoted {
4
5
- object autolift {
6
- given autoToExpr[T](given Liftable[T], QuoteContext): Conversion[T, Expr[T]] = _.toExpr
7
- }
8
-
9
implicit object ExprOps {
10
def (x: T) toExpr[T: Liftable](given QuoteContext): Expr[T] = summon[Liftable[T]].toExpr(x)
11
library/src/scala/quoted/autolift.scala
@@ -0,0 +1,7 @@
1
+package scala.quoted
+
+/** Enable implicit conversion from a term of type `T` to an expression of type `Expr[T]` */
+object autolift {
+ /** Implicit conversion from a term of type `T` to an expression of type `Expr[T]` */
+ given autoToExpr[T](given Liftable[T], QuoteContext): Conversion[T, Expr[T]] = _.toExpr
+}
0 commit comments