Skip to content

Commit 3381fff

Browse files
author
Alessandro
committed
fix similarterm
1 parent 6c73192 commit 3381fff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TermInterface.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ and `metadata` as the metadata. By default this will execute `head(args...)`.
9393
similarterm(x, head, args, symtype=nothing; metadata=nothing) =
9494
similarterm(typeof(x), head, args, symtype; metadata=nothing)
9595

96+
similarterm(x, head, args; metadata=nothing) =
97+
similarterm(typeof(x), head, args; metadata=nothing)
98+
99+
96100
similarterm(x::Type{Expr}, head, args, symtype=nothing; metadata=nothing) = Expr(head, args...)
97101
function similarterm(x::Type{T}, head::T, args, symtype=nothing; metadata=nothing) where T
98102
if !isterm(T) head else head(args...) end

0 commit comments

Comments
 (0)