Skip to content

Commit a7762c6

Browse files
xal-0KristofferC
authored andcommitted
Add missing PARTITION_KIND_CONST_IMPORT case to print_partition (#58006)
(cherry picked from commit 75d5588)
1 parent a210129 commit a7762c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/show.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3400,6 +3400,9 @@ function print_partition(io::IO, partition::Core.BindingPartition)
34003400
elseif kind == PARTITION_KIND_CONST
34013401
print(io, "constant binding to ")
34023402
print(io, partition_restriction(partition))
3403+
elseif kind == PARTITION_KIND_CONST_IMPORT
3404+
print(io, "constant binding (declared with `import`) to ")
3405+
print(io, partition_restriction(partition))
34033406
elseif kind == PARTITION_KIND_UNDEF_CONST
34043407
print(io, "undefined const binding")
34053408
elseif kind == PARTITION_KIND_GUARD

0 commit comments

Comments
 (0)