From fcb68309c2760a6797b0a9ec23722808060e9aa1 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 26 Sep 2013 15:33:42 +0200 Subject: Direct access to symbol in TermRef If symbol was given explicitly, return it directly rather than going through denot. --- src/dotty/tools/dotc/util/Chars.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/util/Chars.scala') diff --git a/src/dotty/tools/dotc/util/Chars.scala b/src/dotty/tools/dotc/util/Chars.scala index 99aad620a..bae3b4732 100644 --- a/src/dotty/tools/dotc/util/Chars.scala +++ b/src/dotty/tools/dotc/util/Chars.scala @@ -40,7 +40,7 @@ object Chars { /** Convert a character to a backslash-u escape */ def char2uescape(c: Char): String = { @inline def hexChar(ch: Int): Char = - ( if (ch < 10) '0' else 'A' - 10 ) + ch toChar + (( if (ch < 10) '0' else 'A' - 10 ) + ch).toChar char2uescapeArray(2) = hexChar((c >> 12) ) char2uescapeArray(3) = hexChar((c >> 8) % 16) -- cgit v1.2.3