Skip to content

Commit

Permalink
fixup! Fix show of non-identifier Symbols in Exprs
Browse files Browse the repository at this point in the history
  • Loading branch information
c42f committed Jul 3, 2019
1 parent 8be46c4 commit b84a992
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ end
@test sprint(show, Expr(:call, :foo, Symbol("@bar"))) == ":(foo(var\"@bar\"))"
@test sprint(show, Expr(:call, :foo, Symbol("##"))) == ":(foo(var\"##\"))"
@test sprint(show, Expr(:call, :foo, Symbol("a-b"))) == ":(foo(var\"a-b\"))"
@test sprint(show, :(export @foo)) == ":(export @foo)" # FIXME
@test sprint(show, :(import A: @foo)) == ":(import A: @foo)"

# issue #12477
@test sprint(show, Union{Int64, Int32, Int16, Int8, Float64}) == "Union{Float64, Int16, Int32, Int64, Int8}"
Expand Down

0 comments on commit b84a992

Please sign in to comment.