File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ import scala.quoted._
22
33def f (a : Expr [Int ])(using q : Quotes ): Unit =
44
5- ' { val x : Int = $ { (using q2) => a } }
5+ ' { val x : Int = $ { (q2) ? => a } }
66
7- ' { val x : Int = $ { (using q2 : q.Nested ) => a } }
7+ ' { val x : Int = $ { (q2 : q.Nested ) ? => a } }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ object Test {
1313 println(run(s1))
1414 }
1515 def stage1 (x : Expr [Int ])(using Quotes ): Expr [Quotes ?=> Expr [Int ]] =
16- val code = ' { (using q1 : Quotes ) =>
16+ val code = ' { (q1 : Quotes ) ? =>
1717 val x1 = $x
1818 ' { 1 + $ {Expr (x1)} }
1919 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ object Test {
55 given Toolbox = Toolbox .make(getClass.getClassLoader)
66 def main (args : Array [String ]): Unit = withQuotes {
77
8- val q = ' { (using q : Quotes ) =>
8+ val q = ' { (q : Quotes ) ? =>
99 val t = Type .of[String ]
1010 t
1111 }
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ def f(init: Int ?=> Int) : Int = 1
22def f (s : String )(init : Int ?=> Int ) : Int = 2
33
44@ main def Test () =
5- assert(f((using x : Int ) => x) == 1 )
5+ assert(f((x : Int ) ? => x) == 1 )
You can’t perform that action at this time.
0 commit comments