Skip to content

Commit 8570951

Browse files
authored
add a type assert to logging to prevent Base.require invalidation (#48810)
1 parent 832a67c commit 8570951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/logging.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ function default_group_code(file)
445445
QuoteNode(default_group(file)) # precompute if we can
446446
else
447447
ref = Ref{Symbol}() # memoized run-time execution
448-
:(isassigned($ref) ? $ref[] : $ref[] = default_group(something($file, "")))
448+
:(isassigned($ref) ? $ref[] : $ref[] = default_group(something($file, ""))::Symbol)
449449
end
450450
end
451451

0 commit comments

Comments
 (0)