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
+3
View File
@@ -8,3 +8,6 @@ val prop2: Long = 0x7777777777
// val prop3: 513105426295.toLong()
val prop3 = 0x7777777777
// val prop4: 10
const val prop4 = '\n'.code