We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8307dbf commit 00c6ea7Copy full SHA for 00c6ea7
base/compiler/tfuncs.jl
@@ -731,8 +731,12 @@ function typeof_concrete_vararg(t::DataType)
731
for i = 1:np
732
p = t.parameters[i]
733
if i == np && isvarargtype(p)
734
- if isdefined(p, :T) && !isdefined(p, :N) && isconcretetype(p.T)
735
- return Type{Tuple{t.parameters[1:np-1]..., Vararg{p.T, N}}} where N
+ if isdefined(p, :T) && isconcretetype(p.T)
+ t = Type{Tuple{t.parameters[1:np-1]..., Vararg{p.T, N}}} where N
736
+ if isdefined(p, :N)
737
+ return t{p.N}
738
+ end
739
+ return t
740
end
741
elseif !isconcretetype(p)
742
break
0 commit comments