Skip to content

Commit

Permalink
adjust type asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Nov 6, 2022
1 parent 13c41a4 commit 6da3643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ function substitute_broadcast(
end
end
end
ret::Expr = pop!(lb.args)
ret::Expr = pop!(lb.args)::Expr
if Meta.isexpr(ret, :(=), 2)
ret = ret.args[2]
ret = (ret.args[2])::Expr
end
esc(Expr(:let, lb, Expr(:block, ret)))
end
Expand Down

2 comments on commit 6da3643

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

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

@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/71763

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.12.138 -m "<description of version>" 6da364392e43520caa4e353dd565f239202401a4
git push origin v0.12.138

Please sign in to comment.