Skip to content

Commit

Permalink
add a type assert to logging to prevent Base.require invalidation (#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Feb 28, 2023
1 parent 832a67c commit 8570951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/logging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ function default_group_code(file)
QuoteNode(default_group(file)) # precompute if we can
else
ref = Ref{Symbol}() # memoized run-time execution
:(isassigned($ref) ? $ref[] : $ref[] = default_group(something($file, "")))
:(isassigned($ref) ? $ref[] : $ref[] = default_group(something($file, ""))::Symbol)
end
end

Expand Down

0 comments on commit 8570951

Please sign in to comment.