We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c1660d commit 3fe8aa0Copy full SHA for 3fe8aa0
test/test_extra_node_fields.jl
@@ -20,11 +20,11 @@ mutable struct FrozenNode{T} <: AbstractExpressionNode{T}
20
return n
21
end
22
23
-function DynamicExpressions.leaf_copy(t::FrozenNode)
+function DynamicExpressions.leaf_copy(t::FrozenNode{T}) where {T}
24
out = if t.constant
25
constructorof(typeof(t))(; val=t.val)
26
else
27
- constructorof(typeof(t))(; feature=t.feature)
+ constructorof(typeof(t))(T; feature=t.feature)
28
29
out.frozen = t.frozen
30
return out
0 commit comments