Skip to content

Commit

Permalink
fixed similarterm
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro committed Aug 25, 2021
1 parent 88dc9f0 commit a21c8f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TermInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ and `metadata` as the metadata. By default this will execute `head(args...)`.
`x` parameter can also be a `Type`.
"""
similarterm(x, head, args, symtype=nothing; metadata=nothing) =
similarterm(typeof(x), head, args, symtype; metadata=nothing)
similarterm(typeof(x), head, args, symtype; metadata=metadata)

similarterm(x, head, args; metadata=nothing) =
similarterm(typeof(x), head, args; metadata=nothing)
similarterm(typeof(x), head, args; metadata=metadata)


similarterm(x::Type{Expr}, head, args, symtype=nothing; metadata=nothing) = Expr(head, args...)
Expand Down

0 comments on commit a21c8f1

Please sign in to comment.