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._
66import scala .quoted .autolift ._
77
88object 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+ }
1212
1313 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 ] ]]})
1515 $ {initArray(arr, ' array )}
1616 }
1717
@@ -27,5 +27,4 @@ object Lifters {
2727 }.toList,
2828 array)
2929 }
30-
3130}
You can’t perform that action at this time.
0 commit comments