Skip to content

Commit 22f818b

Browse files
committed
use getfield in operation and arguments,
because of SciML/ModelingToolkit.jl#633
1 parent 87d6fc6 commit 22f818b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ istree(t::Term) = true
274274

275275
Term(f, args) = Term{rec_promote_symtype(f, map(symtype, args)...)}(f, args)
276276

277-
operation(x::Term) = x.f
277+
operation(x::Term) = getfield(x, :f)
278278

279-
arguments(x::Term) = x.arguments
279+
arguments(x::Term) = getfield(x, :arguments)
280280

281281
## This is much faster than hash of an array of Any
282282
hashvec(xs, z) = foldr(hash, xs, init=z)

0 commit comments

Comments
 (0)