Skip to content

Commit 5f647ff

Browse files
committed
test: fix interfaces
1 parent 24aec43 commit 5f647ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Interfaces.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ function _check_get_metadata(ex::AbstractExpression)
7070
new_ex = with_metadata(ex, get_metadata(ex))
7171
return new_ex == ex && new_ex isa typeof(ex)
7272
end
73-
function _check_get_tree(ex::AbstractExpression{T,N}) where {T,N}
74-
return get_tree(ex) isa N || get_tree(ex) isa AbstractReadOnlyNode{T,N}
73+
function _check_get_tree(ex::AbstractExpression{T,N}) where {T,D,N<:AbstractExpressionNode{T,D}}
74+
return get_tree(ex) isa N || get_tree(ex) isa AbstractReadOnlyNode{T,D,N}
7575
end
7676
function _check_get_operators(ex::AbstractExpression)
7777
return get_operators(ex) isa AbstractOperatorEnum

0 commit comments

Comments
 (0)