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

fix #22032, for f() in 1:10 ... #22167

Merged
merged 1 commit into from
Jun 1, 2017
Merged

fix #22032, for f() in 1:10 ... #22167

merged 1 commit into from
Jun 1, 2017

Conversation

JeffBezanson
Copy link
Member

No description provided.

@JeffBezanson JeffBezanson added backport pending 0.6 bugfix This change fixes an existing bug compiler:lowering Syntax lowering (compiler front end, 2nd stage) labels Jun 1, 2017
test/core.jl Outdated
push!(a, f())
end
@test a == [1,2,3]
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also this test:

let a = []
    for f() in 1:3
        push!(a, f)
    end
    @test [f() for f in a] == [1,2,3]
end

Just to make sure that the closure capture is working as it should.

@JeffBezanson JeffBezanson merged commit e36e412 into master Jun 1, 2017
@JeffBezanson JeffBezanson deleted the jb/fix22032 branch June 1, 2017 18:48
tkelman pushed a commit that referenced this pull request Jun 3, 2017
(cherry picked from commit 03c5ad0)
ref #22167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug compiler:lowering Syntax lowering (compiler front end, 2nd stage)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants