Comment on SI-8450

This commit is contained in:
Eugene Yokota 2015-09-07 01:45:39 -04:00
parent dc0fd2d48b
commit 70b49e9a4b
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ object Escapes extends Properties("Escapes") {
final case class EscapeAndNot(escape: EscapeSequence, notEscape: String) {
override def toString = s"EscapeAntNot(escape = [$escape], notEscape = [${notEscape.map(_.toInt)}])"
}
// 2.10.5 warns on "implicit numeric widening" but it looks like a bug: https://issues.scala-lang.org/browse/SI-8450
final case class EscapeSequence(content: String, terminator: Char) {
if (!content.isEmpty) {
assert(content.tail.forall(c => !isEscapeTerminator(c)), "Escape sequence content contains an escape terminator: '" + content + "'")