Fix @JvmInline value class tests for JS BE

This commit is contained in:
Ilmir Usmanov
2021-10-11 08:37:11 +02:00
committed by TeamCityServer
parent 1da46586bd
commit 5a47eaf215
381 changed files with 1168 additions and 584 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
// WITH_RUNTIME
@JvmInline
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class WrappingInt(val value: Int) {
operator fun inc(): WrappingInt = plus(1)
operator fun plus(num: Int): WrappingInt = WrappingInt((value + num) and 0xFFFF)