Skip to content

Comments

[Literal Expressions] Parse expression-based generic arguments#3275

Open
artemcm wants to merge 1 commit intoswiftlang:mainfrom
artemcm:LiteralExpressionIntegerGenerics
Open

[Literal Expressions] Parse expression-based generic arguments#3275
artemcm wants to merge 1 commit intoswiftlang:mainfrom
artemcm:LiteralExpressionIntegerGenerics

Conversation

@artemcm
Copy link
Contributor

@artemcm artemcm commented Feb 18, 2026

When the LiteralExpressions experimental feature is enabled, add parsing support for a new syntax for parsing arbitrary integer literal expressions for generic value arguments:

InlineArray<(<Expr>), T>
[(<Expr>) of T]

Which, for now, will co-exist alongside the current syntax of simple integer literals. Equivalent to a change introduced in the compiler in swiftlang/swift#87006.

When the `LiteralExpressions` experimental feature is enabled, add parsing support for a new syntax for parsing arbitrary integer literal expressions for generic value arguments:
```swift
InlineArray<(<Expr>), T>
[(<Expr>) of T]
```
Which, for now, will co-exist alongside the current syntax of simple integer literals.
Equivalent to a change introduced in the compiler in swiftlang/swift#87006.
@artemcm
Copy link
Contributor Author

artemcm commented Feb 18, 2026

@swift-ci test

@artemcm
Copy link
Contributor Author

artemcm commented Feb 20, 2026

@swift-ci test

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.

1 participant