You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The List to quote lifter from the documentation does not work
implicitdefListIsLiftable[T:Liftable]:Liftable[List[T]] =new {
deftoExpr(xs: List[T]):Expr[List[T]] = xs match {
case x :: xs1 =>'(~implicitly[Liftable[T]].toExpr(x) :: ~toExpr(xs1))caseNil=>'(Nil: List[T])
}
}
fails with
[error] /Users/nicolas.stucki/GitHub/dotty/library/src/scala/quoted/Liftable.scala:32: unclosed character literal
[error] case x :: xs1 => '(~implicitly[Liftable[T]].toExpr(x) :: ~toExpr(xs1))
[error] ^
[error] /Users/nicolas.stucki/GitHub/dotty/library/src/scala/quoted/Liftable.scala:33: unclosed character literal
[error] case Nil => '(Nil: List[T])
[error] ^
[error] two errors found
The text was updated successfully, but these errors were encountered:
The List to quote lifter from the documentation does not work
fails with
The text was updated successfully, but these errors were encountered: