@@ -290,13 +290,14 @@ for type in (
290290 :(Tuple{Union{Integer, AbstractUnitRange}, Vararg{Union{Integer, AbstractUnitRange}}}),
291291 # disambiguation with Base
292292 :(Tuple{Union{Integer, Base. OneTo}, Vararg{Union{Integer, Base. OneTo}}}),
293+ :(Tuple{Integer, Vararg{Integer}}),
293294 )
294295 @eval function Base. similar (:: Type{<:StructArray{T, N, C}} , sz:: $ (type)) where {T, N, C}
295296 return buildfromschema (typ -> similar (typ, sz), T, C)
296297 end
297298
298- @eval function Base. similar (s:: StructArray , S :: Type , sz:: $ (type))
299- return _similar (s, S , sz)
299+ @eval function Base. similar (s:: StructArray , :: Type{T} , sz:: $ (type)) where {T}
300+ return _similar (s, T , sz)
300301 end
301302end
302303
@@ -471,8 +472,9 @@ for type in (
471472 # mimic OffsetArrays signature
472473 :(Tuple{Union{Integer, AbstractUnitRange, Colon}, Vararg{Union{Integer, AbstractUnitRange, Colon}}}),
473474 # disambiguation with Base
475+ :(Tuple{Integer, Vararg{Integer}}),
474476 :(Tuple{Union{Integer, Base. OneTo}, Vararg{Union{Integer, Base. OneTo}}}),
475- :(Tuple{Vararg{Union{Colon, Integer}}}),
477+ :(Tuple{Union{Colon, Integer}, Vararg{Union{Colon, Integer}}}),
476478 :(Tuple{Vararg{Union{Colon, Int}}}),
477479 :(Tuple{Colon}),
478480 )
0 commit comments