Skip to content

Commit 3fe8aa0

Browse files
committed
test: fix type instability in frozen node
1 parent 5c1660d commit 3fe8aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_extra_node_fields.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ mutable struct FrozenNode{T} <: AbstractExpressionNode{T}
2020
return n
2121
end
2222
end
23-
function DynamicExpressions.leaf_copy(t::FrozenNode)
23+
function DynamicExpressions.leaf_copy(t::FrozenNode{T}) where {T}
2424
out = if t.constant
2525
constructorof(typeof(t))(; val=t.val)
2626
else
27-
constructorof(typeof(t))(; feature=t.feature)
27+
constructorof(typeof(t))(T; feature=t.feature)
2828
end
2929
out.frozen = t.frozen
3030
return out

0 commit comments

Comments
 (0)