Skip to content

Commit

Permalink
Fix method redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed May 3, 2024
1 parent f96fc45 commit b4c97d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/discretedomain.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using Symbolics: Operator, Num, Term, value, recursive_hasoperator

struct SampleTime <: Operator end
SymbolicUtils.promote_symtype(::Type{SampleTime}, t...) = Real
function SampleTime()
SymbolicUtils.term(SampleTime, type = Real)
struct SampleTime <: Operator
SampleTime() = SymbolicUtils.term(SampleTime, type = Real)

Check warning on line 4 in src/discretedomain.jl

View check run for this annotation

Codecov / codecov/patch

src/discretedomain.jl#L4

Added line #L4 was not covered by tests
end
SymbolicUtils.promote_symtype(::Type{<:SampleTime}, t...) = Real

Check warning on line 6 in src/discretedomain.jl

View check run for this annotation

Codecov / codecov/patch

src/discretedomain.jl#L6

Added line #L6 was not covered by tests

# Shift

Expand Down

0 comments on commit b4c97d0

Please sign in to comment.