Skip to content

Commit 4c45359

Browse files
committed
missing inline annotation
Quickly wanted to shared with friends and missed inline annotation.
1 parent c7b98ba commit 4c45359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/Base.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ setproperty!(x::Array, f::Symbol, v) = error("setfield! fields of Array should n
4646
getproperty(x::Tuple, f::Int) = (@inline; getfield(x, f))
4747
setproperty!(x::Tuple, f::Int, v) = setfield!(x, f, v) # to get a decent error
4848

49-
getproperty(x, f::Symbol) = begin
49+
getproperty(x, f::Symbol) = (@inline; begin
5050
try
5151
getfield(x, f)
5252
catch FieldError
5353
throw(PropertyError(x, f))
5454
end
55-
end
55+
end)
5656

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

0 commit comments

Comments
 (0)