Skip to content

Commit 5f96c46

Browse files
committed
Temporarily fix broken type inferencing in test numbereq.scala
1 parent 15ada41 commit 5f96c46

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/run/numbereq.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ object Test {
22
def mkNumbers(x: Int): List[AnyRef] = {
33
val base = List(
44
BigDecimal(x),
5-
BigInt(x),
5+
// FIXME: breaks ycheck, broken type inferencing. Gets a large union type
6+
// instead of list of Number
7+
(BigInt(x): Number),
68
new java.lang.Double(x.toDouble),
79
new java.lang.Float(x.toFloat),
810
new java.lang.Long(x.toLong),
@@ -19,7 +21,9 @@ object Test {
1921

2022
def mkNumbers(x: BigInt): List[AnyRef] = {
2123
List(
22-
List(BigDecimal(x, java.math.MathContext.UNLIMITED)),
24+
// FIXME: breaks ycheck, broken type inferencing. Gets a large union type
25+
// instead of list of Number
26+
List(BigDecimal(x, java.math.MathContext.UNLIMITED): Number),
2327
List(x),
2428
if (x.isValidDouble) List(new java.lang.Double(x.toDouble)) else Nil,
2529
if (x.isValidFloat) List(new java.lang.Float(x.toFloat)) else Nil,

0 commit comments

Comments
 (0)