diff options
author | Shane Delmore <shane@delmore.io> | 2016-02-01 09:50:35 -0800 |
---|---|---|
committer | Shane Delmore <shane@delmore.io> | 2016-02-01 09:51:27 -0800 |
commit | 7137a3bfa6863860b7aee7920f74fb8257e66c01 (patch) | |
tree | 0b2bc257e9442951d85d3ec1649bb33077b224c7 /test/files/run | |
parent | 36bf0c9d58bd1a7aa378ae4a5283b0d3271b725b (diff) | |
download | scala-7137a3bfa6863860b7aee7920f74fb8257e66c01.tar.gz scala-7137a3bfa6863860b7aee7920f74fb8257e66c01.tar.bz2 scala-7137a3bfa6863860b7aee7920f74fb8257e66c01.zip |
Extend BigInt with Ordered for java interop
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/numbereq.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/run/numbereq.scala b/test/files/run/numbereq.scala index 7ce4b23cf8..1f12d0643e 100644 --- a/test/files/run/numbereq.scala +++ b/test/files/run/numbereq.scala @@ -1,6 +1,7 @@ object Test { def mkNumbers(x: Int): List[AnyRef] = { - val base = List( + //Use explicit AnyRef to workaround known limitation of type inference with F-Bounds + val base = List[AnyRef]( BigDecimal(x), BigInt(x), new java.lang.Double(x.toDouble), |