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 inlining of exception handlers #27502

Merged
merged 2 commits into from
Jun 10, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into kf/27456
  • Loading branch information
Keno committed Jun 10, 2018
commit db5e6dd26be7d6847d255ec68d218d5706988a3e
13 changes: 13 additions & 0 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6175,3 +6175,16 @@ translate27368(::Type{Val{name}}) where {name} =
@inline foo27456() = try baz_nonexistent27456(); catch; nothing; end
bar27456() = foo27456()
@test bar27456() == nothing

# issue #27365
mutable struct foo27365
x::Float64
foo27365() = new()
end

function baz27365()
data = foo27365()
return data.x
end

@test isa(baz27365(), Float64)
You are viewing a condensed version of this merge commit. You can view the full changes here.