Skip to content

Commit edfafbf

Browse files
committed
fix more tests
1 parent 59bca1c commit edfafbf

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/pos-macros/splice-with-explicit-context.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import scala.quoted._
22

33
def 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 } }

tests/run-staging/multi-staging.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

tests/run-staging/quote-nested-4.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

tests/run/i10016.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ def f(init: Int ?=> Int) : Int = 1
22
def 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)

0 commit comments

Comments
 (0)