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:
+1
-1
@@ -580,7 +580,7 @@ open class IrFileSerializer(
|
||||
IrConstKind.Null -> proto.`null` = true
|
||||
IrConstKind.Boolean -> proto.boolean = value.value as Boolean
|
||||
IrConstKind.Byte -> proto.byte = (value.value as Byte).toInt()
|
||||
IrConstKind.Char -> proto.char = (value.value as Char).toInt()
|
||||
IrConstKind.Char -> proto.char = (value.value as Char).code
|
||||
IrConstKind.Short -> proto.short = (value.value as Short).toInt()
|
||||
IrConstKind.Int -> proto.int = value.value as Int
|
||||
IrConstKind.Long -> proto.long = value.value as Long
|
||||
|
||||
Reference in New Issue
Block a user