Skip to content

Commit

Permalink
Add test for fixed JuliaLang#13229
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Feb 20, 2016
1 parent 1757229 commit 2325e3d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3745,3 +3745,16 @@ end
let f(T) = Type{T}
@test Base.return_types(f, Tuple{Type{Int}}) == [Type{Type{Int}}]
end

# issue #13229
module I13229
using Base.Test
global z = 0
@time @profile for i = 1:5
function f(x)
return x + i
end
global z = f(i)
end
@test z == 10
end

0 comments on commit 2325e3d

Please sign in to comment.