Skip to content

Commit

Permalink
Fix printing of Char constants.
Browse files Browse the repository at this point in the history
Fixed bug in printing of Char Constants logic
used by Tree printers.

Fixes #4792. No review.



git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25284 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  • Loading branch information
grek committed Jul 13, 2011
1 parent c30f0bf commit 0caf5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/scala/reflect/internal/Constants.scala
Expand Up @@ -225,7 +225,7 @@ trait Constants extends api.Constants {
case NullTag => "null"
case StringTag => "\"" + escape(stringValue) + "\""
case ClassTag => "classOf[" + signature(typeValue) + "]"
case CharTag => escape("'" + escapedChar(charValue) + "'")
case CharTag => "'" + escapedChar(charValue) + "'"
case LongTag => longValue.toString() + "L"
case _ => String.valueOf(value)
}
Expand Down

0 comments on commit 0caf5ea

Please sign in to comment.