Migrate deprecations in core, compiler, idea, tests
Replacing deprecated Char.toInt() with Char.code and Number.toChar() with Number.toInt().toChar(), where Number is not Int. KT-23451
This commit is contained in:
@@ -197,7 +197,7 @@ private constructor(private val whenExpression: KtWhenExpression, context: Trans
|
||||
is Int -> JsIntLiteral(it)
|
||||
is Short -> JsIntLiteral(it.toInt())
|
||||
is Byte -> JsIntLiteral(it.toInt())
|
||||
is Char -> JsIntLiteral(it.toInt())
|
||||
is Char -> JsIntLiteral(it.code)
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user