Skip to content

Commit 5969614

Browse files
author
Sara Alemanno
committed
Update StringContextMacro.scala
1 parent d214141 commit 5969614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src-3.x/dotty/internal/StringContextMacro.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ object StringContextMacro {
6060
*/
6161
private def literalToString(expression : Expr[String])(implicit reflect: Reflection) : String = expression match {
6262
case Const(string : String) => string
63-
case _ => QuoteError("Expected statically known part list", expression)
63+
case _ => QuoteError("Expected statically known literal", expression)
6464
}
6565

6666
/** Retrieves the parts from a StringContext, given inside an Expr, and returns them as a list of Expr of String

0 commit comments

Comments
 (0)