From 513fd181bc99263c92f759c4e17889dcb8da53f0 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 17 Sep 2010 21:20:56 +0000 Subject: Restoring negative literal parsing behavior to ... Restoring negative literal parsing behavior to what should be the least surprising option. Thanks much to Johannes Rudolph for identifying the bug in the bytecode generator which needed addressing for us to arrive at proper -0.0 behavior, and for writing the majority of this patch. A '-' followed immediately by either a number or a period should now always be treated as a single numeric literal, which means the minus binds more tightly than anything else. A specific example of how this differs from 2.8 final is: -5.+(10) == 5.0 // and not -15.0 The full range of potentially ambiguous parses involving prefix operators, numbers, and dots is quite large and still needs to be completely and clearly specified. Closes #2378 and #3657, review by odersky, jrudolph. --- lib/fjbg.jar.desired.sha1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/fjbg.jar.desired.sha1 b/lib/fjbg.jar.desired.sha1 index ff2228066d..c1e938f381 100644 --- a/lib/fjbg.jar.desired.sha1 +++ b/lib/fjbg.jar.desired.sha1 @@ -1 +1 @@ -06769295d0216cf44826d06eda7836c6358110a9 ?fjbg.jar +92c1fe294100f174502593e5429ef5d5dacd4760 ?fjbg.jar -- cgit v1.2.3