@@ -195,11 +195,11 @@ new_dimensions(::Type{D}, dims...) where {D<:AbstractDimensions} = constructorof
195
195
new_quantity (:: Type{Q} , l, r) where {Q<: UnionAbstractQuantity } = constructorof (Q)(l, r)
196
196
197
197
dim_type (:: Type{Q} ) where {T,D<: AbstractDimensions ,Q<: UnionAbstractQuantity{T,D} } = D
198
- dim_type (:: Type{<:AbstractUnionQuantity } ) = DEFAULT_DIM_TYPE
198
+ dim_type (:: Type{<:UnionAbstractQuantity } ) = DEFAULT_DIM_TYPE
199
199
200
200
"""
201
201
constructorof(::Type{<:AbstractDimensions})
202
- constructorof(::Type{<:AbstractUnionQuantity })
202
+ constructorof(::Type{<:UnionAbstractQuantity })
203
203
204
204
Return the constructor of the given type. This is used to create new objects
205
205
of the same type as the input. Overload a method for a new type, especially
@@ -211,7 +211,7 @@ constructorof(::Type{<:GenericQuantity}) = GenericQuantity
211
211
212
212
"""
213
213
with_type_parameters(::Type{<:AbstractDimensions}, ::Type{R})
214
- with_type_parameters(::Type{<:AbstractUnionQuantity }, ::Type{T}, ::Type{D})
214
+ with_type_parameters(::Type{<:UnionAbstractQuantity }, ::Type{T}, ::Type{D})
215
215
216
216
Return the type with the given type parameters instead of the ones in the input type.
217
217
This is used to get `Dimensions{R}` from input `(Dimensions{R1}, R)`, for example.
0 commit comments