diff options
author | Paul Phillips <paulp@improving.org> | 2010-09-17 21:20:56 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-09-17 21:20:56 +0000 |
commit | 513fd181bc99263c92f759c4e17889dcb8da53f0 (patch) | |
tree | 1622666cd62bd160b68bc0205de6db4317c6026a /lib | |
parent | ab8f20c1f7cb13f4c9a7bac88ebb82a5ce89e6d9 (diff) | |
download | scala-513fd181bc99263c92f759c4e17889dcb8da53f0.tar.gz scala-513fd181bc99263c92f759c4e17889dcb8da53f0.tar.bz2 scala-513fd181bc99263c92f759c4e17889dcb8da53f0.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fjbg.jar.desired.sha1 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |