[JS Legacy] Add an implicit cast to int for the mod operation

^KT-45620 Fixed
This commit is contained in:
Alexander Korepanov
2022-01-20 20:19:01 +03:00
committed by Space
parent 34ca38d1a0
commit 68117faa73
3 changed files with 18 additions and 2 deletions
-2
View File
@@ -1,5 +1,3 @@
// DONT_TARGET_EXACT_BACKEND: JS
fun testModNegativeInt() {
// wrapper prevents the constants folding
infix fun Int.myModInt(y: Int): Any = this % y