[SR-10131] AST Dump - float literals should include their sign #52533
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
good first issue
Good for newcomers
Environment
Using Swift 5, toolchain 4220190203a. Also tested with the most recent Swift 5 toolchain (5020190310a, from March 10th 2019).
Additional Detail from JIRA
md5: 45b85c9388061a6e207ae00b2a568249
Issue Description:
In AST dumps, negative integer literals include a "negative" flag, but float literals don't dump any info on whether or not they are negative.
For instance, dumping a file with these contents:
yields an AST dump like this:
in which the integer literal ends with
negative value=1)
but the float literal just ends withvalue=1.0)
.The text was updated successfully, but these errors were encountered: