Skip to content

Commit

Permalink
fixed bug in similarterm, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro committed Aug 27, 2021
1 parent 1ec3e95 commit def31aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TermInterface"
uuid = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c"
authors = ["Shashi Gowda <[email protected]>", "Alessandro Cheli <[email protected]>"]
version = "0.1.6"
version = "0.1.7"

[compat]
julia = "1"
7 changes: 2 additions & 5 deletions src/TermInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,9 @@ and `metadata` as the metadata. By default this will execute `head(args...)`.
similarterm(x, head, args, symtype=nothing; metadata=nothing) =
similarterm(typeof(x), head, args, symtype; metadata=metadata)

similarterm(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...)
function similarterm(x::Type{T}, head::T, args, symtype=nothing; metadata=nothing) where T

function similarterm(x::Type{T}, head, args, symtype=nothing; metadata=nothing) where T
if !istree(T) head else head(args...) end
end
export similarterm
Expand Down

2 comments on commit def31aa

@0x0f0f0f
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

Bugfixes in similarterm

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/43664

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.7 -m "<description of version>" def31aac8481fbfaa8947b3a5de58d5f56353c39
git push origin v0.1.7

Please sign in to comment.