From 8e61753c28c9863dfdeb00b174e84f06d7fa678a Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Thu, 24 Mar 2022 17:39:23 +0900 Subject: [PATCH] fix, maybe? --- base/compiler/tfuncs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/compiler/tfuncs.jl b/base/compiler/tfuncs.jl index 20da39c08a603..88f335cc6d492 100644 --- a/base/compiler/tfuncs.jl +++ b/base/compiler/tfuncs.jl @@ -1558,7 +1558,7 @@ function tuple_tfunc(argtypes::Vector{Any}) else params[i] = Type end - elseif hasintersect(x, Type) + elseif !isvarargtype(x) && hasintersect(x, Type) params[i] = Union{x, Type} else params[i] = x