The SmalltalkScanner used for refactorings, live error reporting and some other IDE purposes, loses the sign of simple negative floats. This hasn't mattered much to date because the literal values generated are not consumed, e.g. when an AST is used to reformat code, the original number syntax is preserved.
The bug was introduced in 9dd28bdf5bc5581380b5daf99b39b34d6c7796bb
To Reproduce
Evaluate:
(SmalltalkScanner on: '-1.23' readStream) next value "=> 1.23"
Expected behavior
Obviously the result should be -1.23.
The SmalltalkScanner used for refactorings, live error reporting and some other IDE purposes, loses the sign of simple negative floats. This hasn't mattered much to date because the literal values generated are not consumed, e.g. when an AST is used to reformat code, the original number syntax is preserved.
The bug was introduced in 9dd28bdf5bc5581380b5daf99b39b34d6c7796bb
To Reproduce
Evaluate:
Expected behavior Obviously the result should be -1.23.