Skip to content

Commit 0aefe8f

Browse files
committed
add test
1 parent fe7583e commit 0aefe8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/syntax.jl

+6
Original file line numberDiff line numberDiff line change
@@ -2268,3 +2268,9 @@ end
22682268
# issue #36196
22692269
@test_throws ParseError("\"for\" at none:1 expected \"end\", got \")\"") Meta.parse("(for i=1; println())")
22702270
@test_throws ParseError("\"try\" at none:1 expected \"end\", got \")\"") Meta.parse("(try i=1; println())")
2271+
2272+
# issue #36272
2273+
macro m36272()
2274+
:((a, b=1) -> a*b)
2275+
end
2276+
@test @m36272()(1) == 1

0 commit comments

Comments
 (0)