Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse InlineArray type sugar #3021

Merged
merged 3 commits into from
Mar 23, 2025

Conversation

hamishknight
Copy link
Contributor

Parse e.g [3 x Int] as type sugar for InlineArray. Gated behind an experimental feature flag for now.

Copy link
Member

@ahoppen ahoppen 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, just one more comment.

This is handled in `parseType`, not `parseTypeScalar`. `canParseType`
is currently the only client of `canParseTypeScalar` though, so this
is NFC.
Parse e.g `[3 x Int]` as type sugar for InlineArray. Gated behind
an experimental feature flag for now.
@hamishknight
Copy link
Contributor Author

@rintaro
Copy link
Member

rintaro commented Mar 19, 2025

swiftlang/swift#80087
swiftlang/llvm-project#10291
swiftlang/swift-package-manager#8387
@swift-ci please test Linux

1 similar comment
@rintaro
Copy link
Member

rintaro commented Mar 19, 2025

@airspeedswift airspeedswift merged commit 05efc50 into swiftlang:main Mar 23, 2025
24 checks passed
@hamishknight hamishknight deleted the inline-array-type branch March 24, 2025 01:08
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