Skip to content

Fixes around primitive literals

Krzysztof Gogolewski requested to merge wip/fix-literals into master
  • The SourceText of primitive characters 'a'# did not include the #, unlike for other primitive literals 1#, 1##, 1.0#, 1.0##, "a"#. After this is fixed, we can remove the function pp_st_suffix, which was a hack to add the # back.
  • Negative primitive literals shouldn't use parentheses, as described in Note [Printing of literals in Core]. Added a testcase to T14681.

This prepares the ground for sized literals !8307 (closed).

Merge request reports