Skip to content

Commit 8b8ed66

Browse files
Merge pull request #4848 from SciML/as/fix-sampletime-promotion
fix: fix promotion rules for `SampleTime`
2 parents cdb7ad5 + a6a9adc commit 8b8ed66

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)