Skip to content

Commit b4c97d0

Browse files
committed
Fix method redefinition
1 parent f96fc45 commit b4c97d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/discretedomain.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
using Symbolics: Operator, Num, Term, value, recursive_hasoperator
22

3-
struct SampleTime <: Operator end
4-
SymbolicUtils.promote_symtype(::Type{SampleTime}, t...) = Real
5-
function SampleTime()
6-
SymbolicUtils.term(SampleTime, type = Real)
3+
struct SampleTime <: Operator
4+
SampleTime() = SymbolicUtils.term(SampleTime, type = Real)
75
end
6+
SymbolicUtils.promote_symtype(::Type{<:SampleTime}, t...) = Real
87

98
# Shift
109

0 commit comments

Comments
 (0)