Skip to content

Commit

Permalink
Fix a bug that occurs because Future is a stdlib but also a type (#166
Browse files Browse the repository at this point in the history
)

* Update stdlib.jl

* Update Project.toml
  • Loading branch information
DilumAluthge authored Nov 22, 2019
1 parent d3765d4 commit 24d3623
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "JLD2"
uuid = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
version = "0.1.7"
version = "0.1.8"

[deps]
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
Expand Down
5 changes: 4 additions & 1 deletion src/stdlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ function stdlibmodules(m::Module)::Vector{Module}
for x in values(stdlib())
s = Symbol(x)
if isdefined(m, s)
push!(result, getproperty(m, s))
m_dot_s = getproperty(m, s)
if m_dot_s isa Module
push!(result, m_dot_s)
end
end
end
return result
Expand Down

2 comments on commit 24d3623

@DilumAluthge
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 register branch=master

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

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 Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.8 -m "<description of version>" 24d3623342bde69412b67e9e27f0db1001eba69b
git push origin v0.1.8

Please sign in to comment.