diff --git a/test/compiler/inference.jl b/test/compiler/inference.jl index 79030bd9109905..f1120694f65133 100644 --- a/test/compiler/inference.jl +++ b/test/compiler/inference.jl @@ -1725,10 +1725,10 @@ end @test setfield!_tfunc(Some, Symbol, Int) === Union{} @test setfield!_tfunc(Some{Any}, Int, Int) === Union{} @test setfield!_tfunc(Some, Int, Int) === Union{} -@test setfield!_tfunc(Const(@__MODULE__), Const(:v), Int) === Union{} +@test setfield!_tfunc(Const(@__MODULE__), Const(:v), Int) === Int @test setfield!_tfunc(Const(@__MODULE__), Int, Int) === Union{} -@test setfield!_tfunc(Module, Const(:v), Int) === Union{} -@test setfield!_tfunc(Union{Module,Base.RefValue{Any}}, Const(:v), Int) === Union{} +@test setfield!_tfunc(Module, Const(:v), Int) === Int +@test setfield!_tfunc(Union{Module,Base.RefValue{Any}}, Const(:v), Int) === Int @test setfield!_tfunc(ABCDconst, Const(:a), Any) === Union{} @test setfield!_tfunc(ABCDconst, Const(:b), Any) === Union{} @test setfield!_tfunc(ABCDconst, Const(:d), Any) === Union{} diff --git a/test/misc.jl b/test/misc.jl index 9a92d0fda00763..5a50661429a100 100644 --- a/test/misc.jl +++ b/test/misc.jl @@ -393,16 +393,6 @@ let s = Set(1:100) @test summarysize([s]) > summarysize(s) end -# issue #13021 -let ex = try - Main.x13021 = 0 - nothing -catch ex - ex -end - @test isa(ex, ErrorException) && ex.msg == "cannot assign variables in other modules" -end - ## test conversion from UTF-8 to UTF-16 (for Windows APIs) # empty arrays