Skip to content

Commit

Permalink
unionnone
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Jan 16, 2025
1 parent 015a748 commit 6e4f16f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Tracing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ Base.@nospecializeinfer function traced_type_inner(@nospecialize(T::Type), seen,
throw(NoFieldMatchError(T, TT2))
end

Base.@nospecializeinfer function traced_type_inner(@nospecialize(T::Type{Union{}}), seen, mode::TraceMode, @nospecialize(track_numbers::Type))
return T
end

for T in (DataType, Module, Nothing, Symbol, AbstractChar, AbstractString, AbstractFloat, Integer, RNumber)
@eval Base.@nospecializeinfer function traced_type_inner(@nospecialize(T::Type{<:$T}), seen, mode::TraceMode, @nospecialize(track_numbers::Type))
return T
Expand Down

0 comments on commit 6e4f16f

Please sign in to comment.