@@ -100,10 +100,6 @@ ambig(x::Union{Char, Int16}) = 's'
100100const allowed_undefineds = Set ([
101101 GlobalRef (Base, :active_repl ),
102102 GlobalRef (Base, :active_repl_backend ),
103- GlobalRef (Base. Filesystem, :JL_O_TEMPORARY ),
104- GlobalRef (Base. Filesystem, :JL_O_SHORT_LIVED ),
105- GlobalRef (Base. Filesystem, :JL_O_SEQUENTIAL ),
106- GlobalRef (Base. Filesystem, :JL_O_RANDOM ),
107103])
108104
109105let Distributed = get (Base. loaded_modules,
@@ -167,7 +163,7 @@ using LinearAlgebra, SparseArrays, SuiteSparse
167163# Test that Core and Base are free of ambiguities
168164# not using isempty so this prints more information when it fails
169165@testset " detect_ambiguities" begin
170- let ambig = Set {Any} (((m1 . sig, m2 . sig) for (m1, m2) in detect_ambiguities (Core, Base; recursive= true , ambiguous_bottom= false , allowed_undefineds) ))
166+ let ambig = Set ( detect_ambiguities (Core, Base; recursive= true , ambiguous_bottom= false , allowed_undefineds))
171167 good = true
172168 for (sig1, sig2) in ambig
173169 @test sig1 === sig2 # print this ambiguity
@@ -178,6 +174,9 @@ using LinearAlgebra, SparseArrays, SuiteSparse
178174
179175 # some ambiguities involving Union{} type parameters are expected, but not required
180176 let ambig = Set (detect_ambiguities (Core; recursive= true , ambiguous_bottom= true ))
177+ m1 = which (Core. Compiler. convert, Tuple{Type{<: Core.IntrinsicFunction }, Any})
178+ m2 = which (Core. Compiler. convert, Tuple{Type{<: Nothing }, Any})
179+ pop! (ambig, (m1, m2))
181180 @test ! isempty (ambig)
182181 end
183182
0 commit comments