Allow any case for u suffix

#KT-24663 In Progress
This commit is contained in:
Mikhail Zarechenskiy
2018-06-26 14:53:29 +03:00
parent 984e37c7f1
commit 7c44992016
7 changed files with 363 additions and 256 deletions
@@ -969,7 +969,7 @@ private class ConstantExpressionEvaluatorVisitor(
}
private fun hasLongSuffix(text: String) = text.endsWith('l') || text.endsWith('L')
private fun hasUnsignedSuffix(text: String) = text.endsWith('u')
private fun hasUnsignedSuffix(text: String) = text.endsWith('u') || text.endsWith('U')
private fun parseNumericLiteral(text: String, type: IElementType): Any? {
val canonicalText = LiteralFormatUtil.removeUnderscores(text)