diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-02-10 21:40:08 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-02-10 21:40:08 +0100 |
commit | aa18beccff3b2f2680575c02f30467be0a557f13 (patch) | |
tree | 014ffb8174f3165c6450f49283e47ba219e342da /test/files/run | |
parent | 78c378c97c51600cac1cf42edd050aceb2366026 (diff) | |
parent | e5517e67eea79fbbd886110ff6dc993842852cf8 (diff) | |
download | scala-aa18beccff3b2f2680575c02f30467be0a557f13.tar.gz scala-aa18beccff3b2f2680575c02f30467be0a557f13.tar.bz2 scala-aa18beccff3b2f2680575c02f30467be0a557f13.zip |
Merge pull request #4924 from ShaneDelmore/SI-9452
SI-9452: Extend BigDecimal 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), |