Skip to content

Commit 1660338

Browse files
committed
Fix Term construction in gen_expr
1 parent c3b0585 commit 1660338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fuzzlib.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function gen_expr(lvl=5)
207207
n = rand(1:5)
208208
args = [gen_expr(lvl-1) for i in 1:n]
209209

210-
Term{Number}(f, first.(args)), f(last.(args)...)
210+
_Term(Number, f, first.(args)), f(last.(args)...)
211211
else
212212
f = rand((-,/))
213213
l = gen_expr(lvl-1)
@@ -217,7 +217,7 @@ function gen_expr(lvl=5)
217217
end
218218
args = [l, r]
219219

220-
Term{Number}(f, first.(args)), f(last.(args)...)
220+
_Term(Number, f, first.(args)), f(last.(args)...)
221221
end
222222
end
223223

0 commit comments

Comments
 (0)