summaryrefslogtreecommitdiff
path: root/test/files/pos/five-dot-f.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-11-29 18:10:55 +0000
committerPaul Phillips <paulp@improving.org>2011-11-29 18:10:55 +0000
commit8eba9acbc49eb02b9b5bd8523873a181255e4bb6 (patch)
treea0fa1d713bd0cfdba8b95f7d552dccd1be795fd4 /test/files/pos/five-dot-f.scala
parent9c4f14411f1aac5d106aa4a2a404c7d231752478 (diff)
downloadscala-8eba9acbc49eb02b9b5bd8523873a181255e4bb6.tar.gz
scala-8eba9acbc49eb02b9b5bd8523873a181255e4bb6.tar.bz2
scala-8eba9acbc49eb02b9b5bd8523873a181255e4bb6.zip
Fixed -Xfuture 5.ds, deprecated 0-octal.
I messed up my trip to the future the first time around; now in the future 5.f is not an error but an attempt to call method "f" on 5 like nature intended. (Thank you simon for catching this.) And deprecated leading 0 for octal. Closes SI-5205.
Diffstat (limited to 'test/files/pos/five-dot-f.scala')
-rw-r--r--test/files/pos/five-dot-f.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/five-dot-f.scala b/test/files/pos/five-dot-f.scala
new file mode 100644
index 0000000000..8a7f86e214
--- /dev/null
+++ b/test/files/pos/five-dot-f.scala
@@ -0,0 +1,5 @@
+class C {
+ implicit def ffer(x: Int) = new { def f : Long = 123L }
+
+ val x1: Long = 5.f
+}