Skip to content

Commit c3b0585

Browse files
committed
Fix show_mul for Const
1 parent 85efc31 commit c3b0585

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,10 @@ function show_pow(io, args)
876876
end
877877

878878
function show_mul(io, args)
879+
if isconst(args)
880+
print(io, args.impl.val)
881+
return
882+
end
879883
length(args) == 1 && return print_arg(io, *, args[1])
880884

881885
arg1 = args[1]

0 commit comments

Comments
 (0)