File tree 4 files changed +5
-5
lines changed 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ object Arrays {
6
6
implicit def ArrayIsLiftable [T : Liftable ](implicit t : Type [T ]): Liftable [Array [List [T ]]] = {
7
7
new Liftable [Array [List [T ]]] {
8
8
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})
10
10
// TODO add elements
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ object Arrays {
6
6
implicit def ArrayIsLiftable [T : Liftable ](implicit t : Type [T ], ct : Expr [ClassTag [T ]]): Liftable [Array [T ]] = {
7
7
new Liftable [Array [T ]] {
8
8
def toExpr (arr : Array [T ]): Expr [Array [T ]] = ' {
9
- new Array [$ { t]($ {arr.length.toExpr} })(~ ct)
9
+ new Array [$t]($ {arr.length.toExpr})(~ ct)
10
10
// TODO add elements
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class Foo {
6
6
val e : Expr [Int ] = ' {3 }
7
7
val f : Expr [Int ] = ' {5 }
8
8
val t : Type [Int ] = ' [Int ]
9
- val q = ' { ~ ( ' { (~ e + ~ f).asInstanceOf [~ t] } ) }
9
+ val q = ' { $ { ' { ($ e + $ f).asInstanceOf [$ t] } } }
10
10
println(q.show)
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ object Test {
7
7
}
8
8
def foo [H : Type ]: Expr [H ] = {
9
9
val t = ' [H ]
10
- ' { null .asInstanceOf [~ t] }
10
+ ' { null .asInstanceOf [$ t] }
11
11
}
12
12
def bar [H : Type ]: Expr [List [H ]] = {
13
13
val t = ' [List [H ]]
14
- ' { null .asInstanceOf [~ t] }
14
+ ' { null .asInstanceOf [$ t] }
15
15
}
16
16
}
You can’t perform that action at this time.
0 commit comments