Skip to content

Commit

Permalink
fix typo in issimple filtering in Logging (JuliaLang#38425)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Nov 17, 2020
1 parent ef1b6d3 commit 3365b4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base/logging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function issimple(@nospecialize val)
val isa Number && return true
val isa Char && return true
if val isa Expr
val.head === :quote && issimple(val[1]) && return true
val.head === :quote && issimple(val.args[1]) && return true
val.head === :inert && return true
end
return false
Expand Down
4 changes: 4 additions & 0 deletions test/corelogging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -409,4 +409,8 @@ end
@test record.group == :corelogging # name of this file
end

@testset "complicated kwargs logging macro" begin
@test_logs (:warn, "foo") @warn "foo" argvals=:((DoNotCare{$(Expr(:escape, :Any))}(),))
end

end

0 comments on commit 3365b4e

Please sign in to comment.