summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-09-15 22:13:15 +0000
committerPaul Phillips <paulp@improving.org>2009-09-15 22:13:15 +0000
commita5f4411f8a6dfc670efb8074e0845a1f54d65a2a (patch)
tree6c98ea04a02a13680893c6e77004afbc881474b1 /test
parent4ccb0bf2b78919934cf67b901096331de638ee09 (diff)
downloadscala-a5f4411f8a6dfc670efb8074e0845a1f54d65a2a.tar.gz
scala-a5f4411f8a6dfc670efb8074e0845a1f54d65a2a.tar.bz2
scala-a5f4411f8a6dfc670efb8074e0845a1f54d65a2a.zip
Fix and test case for #2081.
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/bug2081.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/bug2081.scala b/test/files/pos/bug2081.scala
new file mode 100644
index 0000000000..52388464a5
--- /dev/null
+++ b/test/files/pos/bug2081.scala
@@ -0,0 +1,11 @@
+object ScalaForRubyists {
+ class RichInt(n: Int) {
+ def days = 1000*60*60*24*n
+ }
+
+ implicit def RichInt(n: Int): RichInt = new RichInt(n)
+
+ val x = 10.days
+ // a couple parser corner cases I wanted not to break
+ val y = 5.e0 + 5e7
+}