Support mod and floorDiv extensions in constant evaluator

Ignore evaluation tests for floorDiv and mod with FIR for now.
This commit is contained in:
Ilya Gorbunov
2021-02-21 06:05:03 +03:00
parent 58e6f775bb
commit 9cc8f44390
14 changed files with 206 additions and 18 deletions
+7 -1
View File
@@ -20,4 +20,10 @@ val x5 = 0x1234 and 0x5678
val x6 = 0x1234 and 0x5678L
// val x7: 4656.toLong()
val x7 = 0x1234L and 0x5678
val x7 = 0x1234L and 0x5678
// val x8: -123457
val x8 = (-123_456_789_321).floorDiv(1_000_000)
// val x9: 79
val x9 = (-123_456_789_321).mod(100)