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

Setting a type alias in local scope doesn't define the variable anymore in some special cases #57574

Closed
KristofferC opened this issue Feb 28, 2025 · 0 comments
Assignees
Labels
regression Regression in behavior compared to a previous version
Milestone

Comments

@KristofferC
Copy link
Member

KristofferC commented Feb 28, 2025

This used to work in 1.11 but errors in 1.12 with B not defined:

struct A{T} end

let
    for B in ()
    end
    let
        B{T} = A{T}
        B
    end
end

Bisected to #54773.

@KristofferC KristofferC added the regression Regression in behavior compared to a previous version label Feb 28, 2025
@KristofferC KristofferC added this to the 1.12 milestone Feb 28, 2025
xal-0 added a commit to xal-0/julia that referenced this issue Mar 19, 2025
Fixes JuliaLang#57574

Co-authored-by: Em Chu <im.mlechu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Regression in behavior compared to a previous version
Projects
None yet
Development

No branches or pull requests

2 participants