Skip to content

Commit 3012087

Browse files
author
Alessandro
committed
isterm behaviour change
1 parent 9ea6d55 commit 3012087

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TermInterface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ module TermInterface
66
Returns `true` if `x` is a term. If true, `gethead`, `getargs`
77
must also be defined for `x` appropriately.
88
"""
9-
isterm(x) = false
9+
isterm(x) = isterm(typeof(x))
1010
isterm(x::Type{Expr}) = true
11+
isterm(x::Type{T}) where {T} = false
1112
export isterm
1213

1314
"""

0 commit comments

Comments
 (0)