From 4debc5bf1e89a8cb185fd7af1adf1c81c0e95e0c Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 20 May 2010 13:41:33 +0000 Subject: Fixed a BigDecimal/Long comparison bug reported... Fixed a BigDecimal/Long comparison bug reported on the list. No review. --- test/files/run/equality.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/files/run') diff --git a/test/files/run/equality.scala b/test/files/run/equality.scala index 6498b232e1..ff59898821 100644 --- a/test/files/run/equality.scala +++ b/test/files/run/equality.scala @@ -34,5 +34,7 @@ object Test // negatives val bigLong = new java.util.concurrent.atomic.AtomicLong(Long.MaxValue) assert(-1 != bigLong && bigLong != -1) // bigLong.intValue() == -1 + assert(BigDecimal(1.1) != 1L) + assert(1L != BigDecimal(1.1)) } } -- cgit v1.2.3