Uast: cleanup after KT-14868 fixed

GitOrigin-RevId: 63291d8741e57994688a89b46a19614ba007b6ab
This commit is contained in:
Nicolay Mitropolsky
2021-12-20 09:59:19 +00:00
committed by intellij-monorepo-bot
parent d854be65a1
commit cf0bd60d70
@@ -331,12 +331,7 @@ class TreeBasedEvaluator(
constant as? UBooleanConstant
}
PsiType.CHAR -> when (constant) {
// Join the following three in UNumericConstant
// when https://youtrack.jetbrains.com/issue/KT-14868 is fixed
is UIntConstant -> UCharConstant(constant.value.toChar())
is ULongConstant -> UCharConstant(constant.value.toChar())
is UFloatConstant -> UCharConstant(constant.value.toChar())
is UNumericConstant -> UCharConstant(constant.value.toInt().toChar())
is UCharConstant -> constant
else -> null
}