diff --git a/tests/run-with-compiler/reflect-inline/assert_1.scala b/tests/run-with-compiler/reflect-inline/assert_1.scala index 029b7261dd99..f653c220e62c 100644 --- a/tests/run-with-compiler/reflect-inline/assert_1.scala +++ b/tests/run-with-compiler/reflect-inline/assert_1.scala @@ -2,7 +2,7 @@ import scala.quoted._ import scala.tasty._ object api { - inline def (inline x: String) strip <: String = + inline def (inline x: String) stripMargin <: String = ${ stripImpl(x) } private def stripImpl(x: String)(implicit refl: Reflection): Expr[String] = diff --git a/tests/run-with-compiler/reflect-inline/test_2.scala b/tests/run-with-compiler/reflect-inline/test_2.scala index e2c09036de0d..d29a70c0f2a9 100644 --- a/tests/run-with-compiler/reflect-inline/test_2.scala +++ b/tests/run-with-compiler/reflect-inline/test_2.scala @@ -2,7 +2,9 @@ import api._ object Test { def main(args: Array[String]): Unit = { - assert(typeChecks("1 + 1".strip)) - assert(scala.testing.typeChecks("1 + 1".strip)) + val a: String = "5" + assert(typeChecks("|1 + 1".stripMargin)) + assert(scala.testing.typeChecks("|1 + 1".stripMargin)) + assert(("|3 + " + a).stripMargin == "3 + 5") } } \ No newline at end of file