Support Char.code in constant evaluator, KT-46036

But do not consider Char.code a pure integer constant.
This commit is contained in:
Ilya Gorbunov
2021-04-07 17:11:10 +03:00
parent 0a446230f7
commit 8041c3aa1d
10 changed files with 70 additions and 3 deletions
@@ -68,6 +68,8 @@ fun generate(): String {
}
}
unaryOperationsMap.add(Triple("code", listOf(builtIns.charType), false))
for (type in integerTypes) {
for (otherType in integerTypes) {
val parameters = listOf(type, otherType)