File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 210
210
((atom? v) '() )
211
211
(else
212
212
(case (car v)
213
- ((... kw |::|) (try-arg-name (cadr v)))
213
+ ((... kw |::| = ) (try-arg-name (cadr v)))
214
214
((escape) (list v))
215
215
((hygienic-scope) (try-arg-name (cadr v)))
216
216
((meta) ; ; allow certain per-argument annotations
275
275
,@(map (lambda (x )
276
276
(resolve-expansion-vars-with-new-env x env m parent-scope #t ))
277
277
(cddr e))))
278
+ ((tuple) `(tuple ,@(map (lambda (x )
279
+ (resolve-expansion-vars-with-new-env x env m parent-scope #t ))
280
+ (cdr e))))
278
281
(else (other e))))
279
282
280
283
(define (new-expansion-env-for x env (outermost #f ))
367
370
(resolve-expansion-vars- x env m parent-scope #f )))
368
371
(cdr e))))
369
372
370
- ((= function)
373
+ ((= function -> )
371
374
(if (and (pair? (cadr e)) (function-def? e))
372
375
; ; in (kw x 1) inside an arglist, the x isn't actually a kwarg
373
376
`(,(car e) ,(resolve-in-function-lhs (cadr e) env m parent-scope inarg)
Original file line number Diff line number Diff line change @@ -2268,3 +2268,9 @@ end
2268
2268
# issue #36196
2269
2269
@test_throws ParseError (" \" for\" at none:1 expected \" end\" , got \" )\" " ) Meta. parse (" (for i=1; println())" )
2270
2270
@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
You can’t perform that action at this time.
0 commit comments