Skip to content

Conversation

@vtjnash
Copy link
Member

@vtjnash vtjnash commented Oct 31, 2025

Doc return PR #59882 hits a lowering scope bug #60001 when used with a x{T} = y{T} type alias declaration. Adding a block avoids that mistake by breaking up the chained assignment optimizations.

Resolves #59949.

Doc return PR #59882 hits a lowering scope bug #60001 when used with a
`x{T} = y{T}` type alias declaration. Adding a block avoids that
mistake by breaking up the chained assignment optimizations.
@vtjnash vtjnash added docs This change adds or pertains to documentation backport 1.13 labels Oct 31, 2025
@giordano
Copy link
Member

Is this related to #59949? Also, any test for this?

@topolarity
Copy link
Member

Is this related to #59949?

Yes it is - I can confirm it resolves JuliaDiff/ChainRules.jl#826, for example

@giordano
Copy link
Member

Looks like we have a simple reproducer then.

@giordano giordano added the needs tests Unit tests are required for this change label Oct 31, 2025
@topolarity topolarity added merge me PR is reviewed. Merge when all tests are passing and removed needs tests Unit tests are required for this change labels Oct 31, 2025
@mbauman mbauman added docsystem The documentation building system and removed docs This change adds or pertains to documentation labels Oct 31, 2025
@IanButterworth IanButterworth merged commit d5fb6bb into master Nov 2, 2025
8 of 11 checks passed
@IanButterworth IanButterworth deleted the jn/doc-59882-workaround-60001 branch November 2, 2025 04:11
@topolarity topolarity removed the merge me PR is reviewed. Merge when all tests are passing label Nov 3, 2025
KristofferC pushed a commit that referenced this pull request Nov 5, 2025
Co-authored-by: Cody Tapscott <[email protected]>
(cherry picked from commit d5fb6bb)
@KristofferC KristofferC mentioned this pull request Nov 5, 2025
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.13 docsystem The documentation building system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression on master when documenting type alias

6 participants