Skip to content

Conversation

@amartini51
Copy link
Member

Fixes: rdar://149983186

Several places in the grammar allow an optional minus sign followed by
an integer literal, which this simplifies.  However, there is some
argument for keeping the minus sign separate, because it isn't part of
the literal.  This is a "signed integer literal" in that it's an integer
literal that can have a minus sign, not a literal of a signed integer.
Copy link

@Azoy Azoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

Copy link

@colleenish colleenish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass edits. A handful of fixes; let me know if you'd like to discuss anything.

Changes from <rdar://162313224>.

Co-authored-by: Colleen Toporek <colleen_toporek@apple.com>
Copy link

@colleenish colleenish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. No additional changes from me.

amartini51 and others added 2 commits October 13, 2025 15:26
Co-authored-by: Robert Olsen <rolsen8@apple.com>
@amartini51 amartini51 merged commit 38612d2 into swiftlang:main Oct 13, 2025
@amartini51 amartini51 deleted the int_generic_149983186 branch October 13, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants