Skip to content

Commit 8b0ba22

Browse files
committed
Fix and adapt tests
1 parent 6bcd70c commit 8b0ba22

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/run-with-compiler/i3847-b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object Arrays {
66
implicit def ArrayIsLiftable[T: Liftable](implicit t: Type[T]): Liftable[Array[List[T]]] = {
77
new Liftable[Array[List[T]]] {
88
def toExpr(arr: Array[List[T]]): Expr[Array[List[T]]] = '{
9-
new Array[List[${t]](${arr.length.toExpr}})
9+
new Array[List[$t]](${arr.length.toExpr})
1010
// TODO add elements
1111
}
1212
}

tests/run-with-compiler/i3847.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object Arrays {
66
implicit def ArrayIsLiftable[T: Liftable](implicit t: Type[T], ct: Expr[ClassTag[T]]): Liftable[Array[T]] = {
77
new Liftable[Array[T]] {
88
def toExpr(arr: Array[T]): Expr[Array[T]] = '{
9-
new Array[${t](${arr.length.toExpr}})(~ct)
9+
new Array[$t](${arr.length.toExpr})(~ct)
1010
// TODO add elements
1111
}
1212
}

tests/run-with-compiler/i4044e.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Foo {
66
val e: Expr[Int] = '{3}
77
val f: Expr[Int] = '{5}
88
val t: Type[Int] = '[Int]
9-
val q = '{ ~( '{ (~e + ~f).asInstanceOf[~t] } ) }
9+
val q = '{ ${ '{ ($e + $f).asInstanceOf[$t] } } }
1010
println(q.show)
1111
}
1212
}

tests/run-with-compiler/i5247.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ object Test {
77
}
88
def foo[H : Type]: Expr[H] = {
99
val t = '[H]
10-
'{ null.asInstanceOf[~t] }
10+
'{ null.asInstanceOf[$t] }
1111
}
1212
def bar[H : Type]: Expr[List[H]] = {
1313
val t = '[List[H]]
14-
'{ null.asInstanceOf[~t] }
14+
'{ null.asInstanceOf[$t] }
1515
}
1616
}

0 commit comments

Comments
 (0)