File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
tests/run-with-compiler/shonan-hmm Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import scala.quoted._
6
6
import scala .quoted .autolift ._
7
7
8
8
object Lifters {
9
-
10
- implicit def ClassTagIsLiftable [ T : Type ]( implicit ct : ClassTag [ T ]) : Liftable [ ClassTag [ T ]] =
11
- ct => ' { ClassTag ( $ {ct.runtimeClass}) }
9
+ implicit def LiftedClassTag [ T : Type ]( implicit ct : ClassTag [ T ]) : Expr [ ClassTag [ T ]] = {
10
+ ' { ClassTag ( $ {ct.runtimeClass })}
11
+ }
12
12
13
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 ]]})
14
+ val array = new Array [T ]($ {arr.length})($ {implicitly[Expr [ ClassTag [T ] ]]})
15
15
$ {initArray(arr, ' array )}
16
16
}
17
17
@@ -27,5 +27,4 @@ object Lifters {
27
27
}.toList,
28
28
array)
29
29
}
30
-
31
30
}
You can’t perform that action at this time.
0 commit comments