Deprecated BigInt#~ in favor of unary_~. Closes #4659, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25122 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
33db9ea391
commit
a5c79ca226
|
@ -256,9 +256,12 @@ class BigInt(val bigInteger: BigInteger) extends ScalaNumber with ScalaNumericCo
|
|||
*/
|
||||
def signum: Int = this.bigInteger.signum()
|
||||
|
||||
/** Returns the bitwise complement of this BigNum
|
||||
@deprecated("Use ~bigInt (the unary_~ method) instead", "2.10.0")
|
||||
def ~ : BigInt = ~this
|
||||
|
||||
/** Returns the bitwise complement of this BigInt
|
||||
*/
|
||||
def ~ : BigInt = new BigInt(this.bigInteger.not())
|
||||
def unary_~ : BigInt = new BigInt(this.bigInteger.not())
|
||||
|
||||
/** Returns true if and only if the designated bit is set.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue