Skip to content

Commit 2e8fa8d

Browse files
committed
Make test intention clear
1 parent b35f6a6 commit 2e8fa8d

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

tests/run-macros/i6253-c.check

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/run-macros/i6253-c/quoted_1.scala

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ object Macros {
88

99
private def impl(self: Expr[StringContext], args: Expr[Seq[String]])(using QuoteContext): Expr[String] = {
1010
self match {
11-
case '{ StringContext($parts: _*) } =>
12-
'{
13-
val p: Seq[String] = $parts
14-
val a: Seq[Any] = $args ++ Seq("")
15-
p.zip(a).map(_ + _.toString).mkString
16-
}
11+
case '{ StringContext($parts: _*) } => // Should not match as the parameter is not marked as inlined
12+
'{ ??? }
1713
case _ =>
18-
'{ "ERROR" }
14+
'{ "Ok" }
1915
}
2016
}
2117
}

0 commit comments

Comments
 (0)