Skip to content

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

@KristofferC

Description

@KristofferC

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.

Metadata

Metadata

Assignees

Labels

regressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions