Skip to content

Commit a6a9adc

Browse files
fix: fix promotion rules for SampleTime
1 parent dad829b commit a6a9adc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ModelingToolkitBase/src/discretedomain.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ end
194194

195195
SampleTime(; init::Union{Nothing, Real} = nothing) = SampleTime(init)()
196196
(D::SampleTime)() = STerm(D, SArgsT(()); type = Real, shape = SU.ShapeVecT())
197-
SymbolicUtils.promote_symtype(::SampleTime, ::Type{T}) where {T} = Real
198-
SymbolicUtils.promote_shape(::SampleTime, @nospecialize(x::SU.ShapeT)) = x
197+
SymbolicUtils.promote_symtype(::SampleTime) = Real
198+
SymbolicUtils.promote_shape(::SampleTime) = SU.ShapeVecT()
199199
Base.nameof(::SampleTime) = :SampleTime
200200
SymbolicUtils.isbinop(::SampleTime) = false
201201

0 commit comments

Comments
 (0)