File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -4404,6 +4404,9 @@ f(x) = yt(x)
4404
4404
cnd)))
4405
4405
(define (emit-cond cnd break-labels endl )
4406
4406
(let* ((cnd (if (and (pair? cnd) (eq? (car cnd) 'block ))
4407
+ (flatten-ex 'block cnd)
4408
+ cnd))
4409
+ (cnd (if (and (pair? cnd) (eq? (car cnd) 'block ))
4407
4410
(begin (if (length> cnd 2 ) (compile (butlast cnd) break-labels #f #f ))
4408
4411
(last cnd))
4409
4412
cnd))
Original file line number Diff line number Diff line change @@ -3422,3 +3422,10 @@ end
3422
3422
# issue #46251
3423
3423
@test begin ; global value = 1 ; (value, value += 1 ) end == (1 , 2 )
3424
3424
@test begin ; global value = 1 ; " ($(value) , $(value += 1 ) )" end == " (1, 2)"
3425
+
3426
+ # issue #47410
3427
+ # note `eval` is needed since this needs to be at the top level
3428
+ @test eval (:(if false
3429
+ elseif false || (()-> true )()
3430
+ 42
3431
+ end )) == 42
You can’t perform that action at this time.
0 commit comments