Skip to content

Commit

Permalink
missing inline annotation
Browse files Browse the repository at this point in the history
Quickly wanted to shared with friends and missed inline annotation.
  • Loading branch information
arhik committed Jul 29, 2024
1 parent c7b98ba commit 4c45359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ setproperty!(x::Array, f::Symbol, v) = error("setfield! fields of Array should n
getproperty(x::Tuple, f::Int) = (@inline; getfield(x, f))
setproperty!(x::Tuple, f::Int, v) = setfield!(x, f, v) # to get a decent error

getproperty(x, f::Symbol) = begin
getproperty(x, f::Symbol) = (@inline; begin
try
getfield(x, f)
catch FieldError
throw(PropertyError(x, f))
end
end
end)

# (@inline; getfield(x, f))
function setproperty!(x, f::Symbol, v)
Expand Down

0 comments on commit 4c45359

Please sign in to comment.