Skip to content

Commit

Permalink
Fix splat (#1221)
Browse files Browse the repository at this point in the history
* Runtime splat

* fix internal side
  • Loading branch information
wsmoses authored Dec 20, 2023
1 parent 8fb0f10 commit d2ec96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d2ec96e

Please sign in to comment.