Skip to content

[DNM][WIP][Literal Expressions] Enable by-default - #3389

Draft
artemcm wants to merge 3 commits into
swiftlang:mainfrom
artemcm:EnableDefaultLiteralExpressions
Draft

[DNM][WIP][Literal Expressions] Enable by-default#3389
artemcm wants to merge 3 commits into
swiftlang:mainfrom
artemcm:EnableDefaultLiteralExpressions

Conversation

@artemcm

@artemcm artemcm commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

artemcm added 3 commits July 23, 2026 15:20
… 'some' types as types

A parenthesized generic argument followed by ',', 'of', or '>' is routed to a value expression. An opaque 'some' type can only appear as a type, so de-route a parenthesized group containing one back to type parsing, matching the C++ parser. Mirrors swift's ParseType change.
…as types

A top-level comma inside a parenthesized generic argument makes it a tuple type, which is never a valid generic value argument. De-route such a group back to type parsing, matching the C++ parser. Mirrors swift's ParseType change.
@rintaro

rintaro commented Jul 23, 2026

Copy link
Copy Markdown
Member

Sorry for the conflicts 🙇 #3377

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.

2 participants