Skip to content

Commit d56f132

Browse files
committed
make Variable constructor use symtype
1 parent 8b6707a commit d56f132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ struct Variable{T} <: Symbolic{T}
105105
name::Symbol
106106
end
107107

108-
Variable(x) = Variable{Number}(x)
108+
Variable(x) = Variable{symtype(x)}(x)
109109

110110
Base.nameof(v::Variable) = v.name
111111

0 commit comments

Comments
 (0)