From 982949462e7e0a2d07ccf4158c440561117dc152 Mon Sep 17 00:00:00 2001 From: William Moses Date: Thu, 16 Nov 2023 01:57:09 -0700 Subject: [PATCH] Fix tuple number of fields warning (#1147) --- src/typetree.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/typetree.jl b/src/typetree.jl index d3e6d6e9e0..12c840b254 100644 --- a/src/typetree.jl +++ b/src/typetree.jl @@ -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