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 3624d9d commit af68fc3Copy full SHA for af68fc3
base/compiler/tfuncs.jl
@@ -731,8 +731,13 @@ 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)
+ nothing
736
+ t = Type{Tuple{t.parameters[1:np-1]..., Vararg{p.T, N}}} where N
737
+ if isdefined(p, :N)
738
+ return t{p.N}
739
+ end
740
+ return t
741
end
742
elseif !isconcretetype(p)
743
break
0 commit comments