From 601e3953dbad768c5203c657913fa63de0ea38c9 Mon Sep 17 00:00:00 2001 From: Chengyu Han Date: Thu, 30 Jan 2025 15:48:55 +0800 Subject: [PATCH] test: fix syntax test `n37134` --- test/syntax.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/syntax.jl b/test/syntax.jl index c98669f3c0f6a..f29dd4978d309 100644 --- a/test/syntax.jl +++ b/test/syntax.jl @@ -2454,7 +2454,9 @@ end @test_throws MethodError @m37134()(1.0) == 62 macro n37134() - :($(esc(Expr(:tuple, Expr(:..., :x))))->$(esc(:x))) + quote + ((x...,)) -> (x) + end |> esc end @test @n37134()(2,1) === (2,1)