diff options
author | Paul Phillips <paulp@improving.org> | 2011-06-21 04:28:33 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-06-21 04:28:33 +0000 |
commit | b3b9dbaee24050c1ce3c9711935e3b88ae2b8553 (patch) | |
tree | c7763b92be685a032dddb1dae1aa8eaf8e7a4bdb | |
parent | dd511e1a1ad51206ff4dc5bfbf6caea4be5d4457 (diff) | |
download | scala-b3b9dbaee24050c1ce3c9711935e3b88ae2b8553.tar.gz scala-b3b9dbaee24050c1ce3c9711935e3b88ae2b8553.tar.bz2 scala-b3b9dbaee24050c1ce3c9711935e3b88ae2b8553.zip |
Deprecated BigInt#~ in favor of unary_~.
-rw-r--r-- | src/library/scala/math/BigInt.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/library/scala/math/BigInt.scala b/src/library/scala/math/BigInt.scala index b8ddd54233..687b6c9713 100644 --- a/src/library/scala/math/BigInt.scala +++ b/src/library/scala/math/BigInt.scala @@ -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. */ |