[Bug]: The parser does not create diagnostics for int/float literals with more than one sign characters #42138
Labels
Area/Parser
Everything related to the ballerina lexer and the parser #Compiler
Reason/Invalid
Issue is invalid.
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
As mentioned in the spec, there can be only zero or one sign character prefixed to an integer or float. However, the parser does not generate a diagnostic when there are more than one such characters.
Steps to Reproduce
Execute the following Ballerina code.
Affected Version(s)
Ballerina 2201.8.4 (Swan Lake Update 8)
OS, DB, other environment details and versions
OS: macOS 14.2.1 23C71
JDK: openjdk 17.0.8 2023-07-18
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: