File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ object Test {
2
2
def mkNumbers (x : Int ): List [AnyRef ] = {
3
3
val base = List (
4
4
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 ),
6
8
new java.lang.Double (x.toDouble),
7
9
new java.lang.Float (x.toFloat),
8
10
new java.lang.Long (x.toLong),
@@ -19,7 +21,9 @@ object Test {
19
21
20
22
def mkNumbers (x : BigInt ): List [AnyRef ] = {
21
23
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 ),
23
27
List (x),
24
28
if (x.isValidDouble) List (new java.lang.Double (x.toDouble)) else Nil ,
25
29
if (x.isValidFloat) List (new java.lang.Float (x.toFloat)) else Nil ,
You can’t perform that action at this time.
0 commit comments