From f194a29a53d4383bd83f04cced3c382923f224d0 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 11 Nov 2011 01:36:12 +0000 Subject: Deprecated ambiguous dot syntaxes. 1.+(2) - what is it? Is it 3 or 3.0? Come scala 2.11 you won't have to not know (or even not know there's something you don't know.) 1.+(2) will then be safely considered equivalent to 1 + 2, because any dot not followed by a digit is not part of a number. Primarily, that's these forms: 3.f 3.d 3. If you prefer an error to a warning, use -Xfuture. Let's deprecate 012 == 10 too! (See comment.) References SI-5089, no review. --- test/files/neg/ambiguous-float-dots.flags | 1 + 1 file changed, 1 insertion(+) create mode 100644 test/files/neg/ambiguous-float-dots.flags (limited to 'test/files/neg/ambiguous-float-dots.flags') diff --git a/test/files/neg/ambiguous-float-dots.flags b/test/files/neg/ambiguous-float-dots.flags new file mode 100644 index 0000000000..65faf53579 --- /dev/null +++ b/test/files/neg/ambiguous-float-dots.flags @@ -0,0 +1 @@ +-Xfatal-warnings -deprecation \ No newline at end of file -- cgit v1.2.3