Skip to content

Commit b29aa5d

Browse files
fix: Hold(::Number) should passthrough
1 parent 3d660ec commit b29aa5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/discretedomain.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ end
209209
is_transparent_operator(::Type{Hold}) = true
210210

211211
(D::Hold)(x) = Term{symtype(x)}(D, Any[x])
212+
(D::Hold)(x::Number) = x
212213
(D::Hold)(x::Num) = Num(D(value(x)))
213214
SymbolicUtils.promote_symtype(::Hold, x) = x
214215
Base.nameof(::Hold) = :Hold

0 commit comments

Comments
 (0)