Skip to content

Commit 601e395

Browse files
committed
test: fix syntax test n37134
1 parent a213bae commit 601e395

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/syntax.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2454,7 +2454,9 @@ end
24542454
@test_throws MethodError @m37134()(1.0) == 62
24552455

24562456
macro n37134()
2457-
:($(esc(Expr(:tuple, Expr(:..., :x))))->$(esc(:x)))
2457+
quote
2458+
((x...,)) -> (x)
2459+
end |> esc
24582460
end
24592461
@test @n37134()(2,1) === (2,1)
24602462

0 commit comments

Comments
 (0)