Skip to content

Commit

Permalink
Fix show_mul for Const
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenszhu committed Sep 16, 2024
1 parent 85efc31 commit c3b0585
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,10 @@ function show_pow(io, args)
end

function show_mul(io, args)
if isconst(args)
print(io, args.impl.val)
return
end
length(args) == 1 && return print_arg(io, *, args[1])

arg1 = args[1]
Expand Down

0 comments on commit c3b0585

Please sign in to comment.