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 d355c9b commit ef06ad7Copy full SHA for ef06ad7
tests/run-with-compiler/shonan-hmm/Lifters.scala
@@ -6,12 +6,12 @@ import scala.quoted._
6
import scala.quoted.autolift._
7
8
object Lifters {
9
-
10
- implicit def ClassTagIsLiftable[T : Type](implicit ct: ClassTag[T]): Liftable[ClassTag[T]] =
11
- ct => '{ClassTag(${ct.runtimeClass})}
+ implicit def LiftedClassTag[T: Type](implicit ct: ClassTag[T]): Expr[ClassTag[T]] = {
+ '{ ClassTag(${ct.runtimeClass })}
+ }
12
13
implicit def ArrayIsLiftable[T : Type: ClassTag](implicit l: Liftable[T]): Liftable[Array[T]] = arr => '{
14
- val array = new Array[T](${arr.length})(${implicitly[ClassTag[T]]})
+ val array = new Array[T](${arr.length})(${implicitly[Expr[ClassTag[T]]]})
15
${initArray(arr, 'array)}
16
}
17
@@ -27,5 +27,4 @@ object Lifters {
27
}.toList,
28
array)
29
30
31
0 commit comments