Advance deprecation level of FP to lesser than Int types to ERROR #KT-30360
This commit is contained in:
@@ -424,6 +424,7 @@ class GeneratePrimitives(out: PrintWriter) : BuiltInsSourceGenerator(out) {
|
||||
|
||||
if (isConversionDeprecated(otherKind)) {
|
||||
out.println(" @Deprecated(\"Unclear conversion. To achieve the same result convert to Int explicitly and then to $otherName.\", ReplaceWith(\"toInt().to$otherName()\"))")
|
||||
out.println(" @DeprecatedSinceKotlin(warningSince = \"1.3\", errorSince = \"1.5\")")
|
||||
}
|
||||
|
||||
out.println(" public override fun to$otherName(): $otherName")
|
||||
|
||||
@@ -52,7 +52,7 @@ fun generateMap(): String {
|
||||
|
||||
val binaryIrOperationsMap = getBinaryIrOperationMap(irBuiltIns)
|
||||
|
||||
p.println("@Suppress(\"DEPRECATION\")")
|
||||
p.println("@Suppress(\"DEPRECATION_ERROR\")")
|
||||
p.println("val unaryFunctions = mapOf<CompileTimeFunction, Function1<Any?, Any?>>(")
|
||||
p.println(generateUnaryBody(unaryOperationsMap, irBuiltIns))
|
||||
p.println(")")
|
||||
|
||||
Reference in New Issue
Block a user