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 156ffe2 commit b43536bCopy full SHA for b43536b
src/utils.jl
@@ -154,7 +154,7 @@ const MISSING_UNIT_DEFINITION_MESSAGE =
154
@inline unit(x::Type{Any}) = throw( DomainError( x, MISSING_UNIT_DEFINITION_MESSAGE ) )
155
@inline unit(x::Number) = NoUnits
156
@inline unit(x::Type{T}) where {T <: Number} = NoUnits
157
-@inline unit(x::Type{Union{Missing, T}}) where T = unit(T) # Type restriction required here for T, or might result in infinite recursion.
+@inline unit(x::Type{Union{Missing, T}}) where T = unit(T)
158
@inline unit(x::Type{Missing}) = missing
159
@inline unit(x::Missing) = missing
160
0 commit comments