Skip to content

Commit a66676c

Browse files
authored
Update src/utilities.jl
1 parent bcb5b8d commit a66676c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function keywords(func, m::Method)
457457
# For some reason, the :kwsorter field is not always defined.
458458
# An undefined kwsorter seems to imply that there are no methods
459459
# in the MethodTable with keyword arguments.
460-
if !isdefined(table, :kwsorter)
460+
if Base.fieldindex(Core.MethodTable, :kwsorter, false) > 0 && !isdefined(table, :kwsorter)
461461
return Symbol[]
462462
end
463463
Base.kwarg_decl(m, typeof(table.kwsorter))

0 commit comments

Comments
 (0)