summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-11-02 18:12:40 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-11-02 18:12:40 -0700
commit0d90320c918db8024a58ebef727d8b957410d0af (patch)
tree1f0ed35f2ff65e4fb6db4c8f4e320511518b4a0b /test
parent424072aeaa391de40531f33694985072cbb70152 (diff)
parent817da386e456be422861ac6e974838e6eb6db836 (diff)
downloadscala-0d90320c918db8024a58ebef727d8b957410d0af.tar.gz
scala-0d90320c918db8024a58ebef727d8b957410d0af.tar.bz2
scala-0d90320c918db8024a58ebef727d8b957410d0af.zip
Merge pull request #1562 from paulp/issue/6600
Fix for SI-6600, regression with ScalaNumber.
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/t6600.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t6600.scala b/test/files/pos/t6600.scala
new file mode 100644
index 0000000000..1e8137894c
--- /dev/null
+++ b/test/files/pos/t6600.scala
@@ -0,0 +1,8 @@
+final class Natural extends scala.math.ScalaNumber with scala.math.ScalaNumericConversions {
+ def intValue(): Int = 0
+ def longValue(): Long = 0L
+ def floatValue(): Float = 0.0F
+ def doubleValue(): Double = 0.0D
+ def isWhole(): Boolean = false
+ def underlying() = this
+}