Skip to content

Commit 67a1446

Browse files
committed
removes special case for BigInteger
After rebasing, the commit 34d3610 is in the history, therefore a patch in my code can be removed as an implicit conversion from BigInteger to BigInt was added in commit 34d3610. The tests cases test this case and still pass.
1 parent 58c053c commit 67a1446

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/scala/tools/reflect/MacroImplementations.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ abstract class MacroImplementations {
6969
case 'c' | 'C' =>
7070
checkType(arg, CharTpe, ByteTpe, ShortTpe, IntTpe)
7171
case 'd' | 'o' | 'x' | 'X' =>
72-
checkType(arg, IntTpe, LongTpe, ByteTpe, ShortTpe, typeOf[BigInt], typeOf[java.math.BigInteger])
73-
// BigInteger can be removed as soon as an implicit conversion is defined from BigInteger to BigInt
72+
checkType(arg, IntTpe, LongTpe, ByteTpe, ShortTpe, typeOf[BigInt])
7473
case 'e' | 'E' | 'g' | 'G' | 'f' | 'a' | 'A' =>
7574
checkType(arg, DoubleTpe, FloatTpe, typeOf[BigDecimal])
7675
case 't' | 'T' =>

0 commit comments

Comments
 (0)