Raise deprecation level for mod operators to ERROR in stdlib
#KT-25217 In Progress
This commit is contained in:
@@ -131,22 +131,22 @@ public class Byte private constructor() : Number(), Comparable<Byte> {
|
||||
public operator fun div(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Byte): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Short): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Int): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Long): Long
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Float): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@@ -319,22 +319,22 @@ public class Short private constructor() : Number(), Comparable<Short> {
|
||||
public operator fun div(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Byte): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Short): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Int): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Long): Long
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Float): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@@ -507,22 +507,22 @@ public class Int private constructor() : Number(), Comparable<Int> {
|
||||
public operator fun div(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Byte): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Short): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Int): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Long): Long
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Float): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@@ -710,22 +710,22 @@ public class Long private constructor() : Number(), Comparable<Long> {
|
||||
public operator fun div(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Byte): Long
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Short): Long
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Int): Long
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Long): Long
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Float): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@@ -916,22 +916,22 @@ public class Float private constructor() : Number(), Comparable<Float> {
|
||||
public operator fun div(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Byte): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Short): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Int): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Long): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Float): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@@ -1099,22 +1099,22 @@ public class Double private constructor() : Number(), Comparable<Double> {
|
||||
public operator fun div(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Byte): Double
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Short): Double
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Int): Double
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Long): Double
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Float): Double
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.WARNING)
|
||||
@Deprecated("Use rem(other) instead", ReplaceWith("rem(other)"), DeprecationLevel.ERROR)
|
||||
public operator fun mod(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
|
||||
Reference in New Issue
Block a user