File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ final class BigInt(val bigInteger: BigInteger)
172
172
(shifted.signum != 0 ) && ! (shifted equals BigInt .minusOne)
173
173
}
174
174
175
+ @ deprecated(" isWhole on an integer type is always true" , " 2.12.15" )
175
176
def isWhole () = true
176
177
def underlying = bigInteger
177
178
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ final class RichInt(val self: Int) extends AnyVal with ScalaNumberProxy[Int] wit
31
31
/** Returns `'''true'''` if this number has no decimal component.
32
32
* Always `'''true'''` for `RichInt`.
33
33
*/
34
+ @ deprecated(" isWhole on an integer type is always true" , " 2.12.15" )
34
35
def isWhole () = true
35
36
36
37
override def isValidInt = true
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ trait ScalaNumberProxy[T] extends Any with ScalaNumericAnyConversions with Typed
45
45
def signum = num.signum(self)
46
46
}
47
47
trait ScalaWholeNumberProxy [T ] extends Any with ScalaNumberProxy [T ] {
48
+ @ deprecated(" isWhole on an integer type is always true" , " 2.12.15" )
48
49
def isWhole () = true
49
50
}
50
51
trait IntegralProxy [T ] extends Any with ScalaWholeNumberProxy [T ] with RangedProxy [T ] {
You can’t perform that action at this time.
0 commit comments