diff --git a/src/basic.jl b/src/basic.jl index fdacd3c..b0b398e 100644 --- a/src/basic.jl +++ b/src/basic.jl @@ -2,7 +2,7 @@ abstract type AbstractSpaceStyle end struct FiniteSpaceStyle <: AbstractSpaceStyle end struct ContinuousSpaceStyle <: AbstractSpaceStyle end -struct HybridSpaceStyle <: AbstractSpaceStyle end +struct HybridProductSpaceStyle <: AbstractSpaceStyle end struct UnknownSpaceStyle <: AbstractSpaceStyle end """ @@ -26,9 +26,9 @@ end SpaceStyle(::AbstractInterval) = ContinuousSpaceStyle() -const BASE_SPACE_STYLES = Union{FiniteSpaceStyle, ContinuousSpaceStyle, HybridSpaceStyle} +const BASE_SPACE_STYLES = Union{FiniteSpaceStyle, ContinuousSpaceStyle, HybridProductSpaceStyle} function promote_spacestyle(::T1, ::T2) where {T1 <: BASE_SPACE_STYLES, T2 <: BASE_SPACE_STYLES} - return (T1 == T2) ? T1() : HybridSpaceStyle() + return (T1 == T2) ? T1() : HybridProductSpaceStyle() end promote_spacestyle(_, _) = UnknownSpaceStyle()