Skip to content

Commit ef06ad7

Browse files
committed
Fix
1 parent d355c9b commit ef06ad7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/run-with-compiler/shonan-hmm/Lifters.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import scala.quoted._
66
import scala.quoted.autolift._
77

88
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+
}
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
}

0 commit comments

Comments
 (0)