From 8eba9acbc49eb02b9b5bd8523873a181255e4bb6 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 29 Nov 2011 18:10:55 +0000 Subject: 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. --- test/files/pos/five-dot-f.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/files/pos/five-dot-f.scala (limited to 'test/files/pos/five-dot-f.scala') 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 +} -- cgit v1.2.3