@@ -289,13 +289,14 @@ for type in (
289289 :(Tuple{Union{Integer, AbstractUnitRange}, Vararg{Union{Integer, AbstractUnitRange}}}),
290290 # disambiguation with Base
291291 :(Tuple{Union{Integer, Base. OneTo}, Vararg{Union{Integer, Base. OneTo}}}),
292+ :(Tuple{Integer, Vararg{Integer}}),
292293 )
293294 @eval function Base. similar (:: Type{<:StructArray{T, N, C}} , sz:: $ (type)) where {T, N, C}
294295 return buildfromschema (typ -> similar (typ, sz), T, C)
295296 end
296297
297- @eval function Base. similar (s:: StructArray , S :: Type , sz:: $ (type))
298- return _similar (s, S , sz)
298+ @eval function Base. similar (s:: StructArray , :: Type{T} , sz:: $ (type)) where {T}
299+ return _similar (s, T , sz)
299300 end
300301end
301302
@@ -470,8 +471,9 @@ for type in (
470471 # mimic OffsetArrays signature
471472 :(Tuple{Union{Integer, AbstractUnitRange, Colon}, Vararg{Union{Integer, AbstractUnitRange, Colon}}}),
472473 # disambiguation with Base
474+ :(Tuple{Integer, Vararg{Integer}}),
473475 :(Tuple{Union{Integer, Base. OneTo}, Vararg{Union{Integer, Base. OneTo}}}),
474- :(Tuple{Vararg{Union{Colon, Integer}}}),
476+ :(Tuple{Union{Colon, Integer}, Vararg{Union{Colon, Integer}}}),
475477 :(Tuple{Vararg{Union{Colon, Int}}}),
476478 :(Tuple{Colon}),
477479 )
0 commit comments