We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d0f590 commit 5e4fe74Copy full SHA for 5e4fe74
src/Compat.jl
@@ -1423,6 +1423,11 @@ if VERSION < v"0.6.0-dev.2283"
1423
end
1424
1425
1426
+# https://github.com/JuliaLang/julia/pull/18082
1427
+if VERSION < v"0.6.0-dev.2347"
1428
+ Base.isassigned(x::Base.RefValue) = isdefined(x, :x)
1429
+end
1430
+
1431
include("to-be-deprecated.jl")
1432
1433
end # module Compat
test/runtests.jl
@@ -1768,4 +1768,8 @@ end
1768
@test Compat.readline(IOBuffer("x\n"), chomp=true) == "x"
1769
@test Compat.readline(IOBuffer("x\n"), chomp=false) == "x\n"
1770
1771
+# PR 18082
1772
+@test !isassigned(Ref{String}())
1773
+@test isassigned(Ref{String}("Test"))
1774
1775
0 commit comments