Skip to content

Commit 9c62605

Browse files
committed
fix: misnaming function as tuple
1 parent 20e9d3a commit 9c62605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function longdef1(ex)
262262

263263
if isexpr(arg, :tuple) && length(arg.args) == 1 && isexpr(arg.args[1], :parameters)
264264
# Special case (; kws...) ->
265-
fcall = Expr(:call, :tuple, arg.args[1])
265+
fcall = Expr(:tuple, arg.args[1])
266266

267267
Expr(:function, fcall, body)
268268
elseif isexpr(arg, :block) && any(a -> isexpr(a, :...) || isexpr(a, :(=)) || isexpr(a, :kw), arg.args)
@@ -278,7 +278,7 @@ function longdef1(ex)
278278
end
279279
end
280280
end
281-
fcall = Expr(:call, :tuple, Expr(:parameters, kw_args...), pos_args...)
281+
fcall = Expr(:tuple, Expr(:parameters, kw_args...), pos_args...)
282282

283283
Expr(:function, fcall, body)
284284
elseif isexpr(arg, :...)

0 commit comments

Comments
 (0)