Skip to content

Commit

Permalink
Fix test for #43784
Browse files Browse the repository at this point in the history
Co-authored-by: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com>
  • Loading branch information
martinholters and aviatesk authored Jan 15, 2022
1 parent 73d4651 commit c7ef143
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/compiler/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3998,11 +3998,13 @@ end
@test (a, c)
@test (b, c)

function f()
g = init
while true
g = Base.ImmutableDict(g, 1=>2)
end
@test @eval Module() begin
const ginit = Base.ImmutableDict{Any,Any}()
Base.return_types() do
g = ginit
while true
g = Base.ImmutableDict(g, 1=>2)
end
end |> only === Union{}
end
@test Base.return_types(f, ()) |> only === Union{}
end

0 comments on commit c7ef143

Please sign in to comment.