Skip to content

Commit

Permalink
Fix tuple number of fields warning (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Nov 16, 2023
1 parent 922dda3 commit 9829494
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/typetree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ function typetree(@nospecialize(T), ctx, dl, seen=nothing)
end
push!(seen, T)

if T === Tuple
return TypeTree()
end

try
fieldcount(T)
catch
Expand Down

0 comments on commit 9829494

Please sign in to comment.