From a5c79ca226a40e4b71c1fcd6c6607473c1259095 Mon Sep 17 00:00:00 2001 From: extempore Date: Tue, 21 Jun 2011 04:28:33 +0000 Subject: [PATCH] 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 --- src/library/scala/math/BigInt.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/library/scala/math/BigInt.scala b/src/library/scala/math/BigInt.scala index dbe6032fb..888f21282 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. */