Skip to content

Enable @restrict for tuple parameters (follow-up to #5148)#5168

Open
gulugulubing wants to merge 1 commit into
ldc-developers:masterfrom
gulugulubing:fix-restrict-slice-tuple
Open

Enable @restrict for tuple parameters (follow-up to #5148)#5168
gulugulubing wants to merge 1 commit into
ldc-developers:masterfrom
gulugulubing:fix-restrict-slice-tuple

Conversation

@gulugulubing

Copy link
Copy Markdown
Contributor

Follow-up to #5148. The fix is a one-line change in dmd/typesem.d: when expanding a tuple parameter into individual elements, propagate userAttribDecl from the outer parameter to each element.

Also submitted upstream: dlang/dmd#23358.

@kinke

kinke commented Jul 4, 2026

Copy link
Copy Markdown
Member

Thanks! Something went wrong during the rebase though, there are still the 7 commits from #5148. We only need the latest 2.

@gulugulubing gulugulubing force-pushed the fix-restrict-slice-tuple branch from 486077d to f5ec1f4 Compare July 4, 2026 14:22
@gulugulubing

Copy link
Copy Markdown
Contributor Author

Thanks! Something went wrong during the rebase though, there are still the 7 commits from #5148. We only need the latest 2.

OK. Fixed the git history.

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