diff --git a/src/Nulls.jl b/src/Nulls.jl index a9eaa50..9b68a03 100644 --- a/src/Nulls.jl +++ b/src/Nulls.jl @@ -67,7 +67,7 @@ for f in (:(!), :(+), :(-), :(Base.identity), :(Base.zero), @eval $(f)(d::Null) = null end -Base.zero(::Type{Union{T, Null}}) where {T} = zero(T) +Base.zero(::Type{Union{T, Null}}) where {T <: Number} = zero(T) # Binary operators/functions for f in (:(+), :(-), :(*), :(/), :(^),