From d2ec96e8da289bf49a4edd0aa9bf0f8757b4f792 Mon Sep 17 00:00:00 2001 From: William Moses Date: Tue, 19 Dec 2023 19:48:35 -0600 Subject: [PATCH] Fix splat (#1221) * Runtime splat * fix internal side --- src/compiler.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.jl b/src/compiler.jl index 6fbc7ea221..1efe058a47 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -4939,7 +4939,7 @@ function jl_set_typeof(v::Ptr{Cvoid}, T) return nothing end -@generated function splatnew(::Type{T}, args::NTuple{N,AT}) where {T,N,AT} +@generated function splatnew(::Type{T}, args::TT) where {T,TT <: Tuple} return quote Base.@_inline_meta $(Expr(:splatnew, :T, :args))