Raise deprecation level for mod operators to ERROR in stdlib
#KT-25217 In Progress
This commit is contained in:
@@ -174,7 +174,7 @@ class GeneratePrimitives(out: PrintWriter) : BuiltInsSourceGenerator(out) {
|
||||
out.println(" @SinceKotlin(\"1.1\")")
|
||||
|
||||
"mod" ->
|
||||
out.println(" @Deprecated(\"Use rem(other) instead\", ReplaceWith(\"rem(other)\"), DeprecationLevel.WARNING)")
|
||||
out.println(" @Deprecated(\"Use rem(other) instead\", ReplaceWith(\"rem(other)\"), DeprecationLevel.ERROR)")
|
||||
}
|
||||
out.println(" public operator fun $name(other: ${otherKind.capitalized}): ${returnType.capitalized}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user