File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -3995,7 +3995,7 @@ f(x) = yt(x)
3995
3995
(if (has? vars (cadr e))
3996
3996
(begin (del! vars (cadr e))
3997
3997
(put! di (cadr e) #t ))))
3998
- ((and (pair? e) (memq (car e) ' (goto gotoifnot)))
3998
+ ((and (pair? e) (memq (car e) ' (goto gotoifnot enter )))
3999
3999
(set! vars (table)))))
4000
4000
(loop (cdr stmts)))))))
4001
4001
Original file line number Diff line number Diff line change @@ -3185,6 +3185,23 @@ function f11065()
3185
3185
end
3186
3186
@test_throws UndefVarError f11065 ()
3187
3187
3188
+ # issue #25724
3189
+ a25724 = Any[]
3190
+ for i = 1 : 3
3191
+ needX = false
3192
+ try
3193
+ X = X
3194
+ X[1 ] = X[1 ] + 1
3195
+ catch err
3196
+ needX = true
3197
+ end
3198
+ if needX
3199
+ X = [0 ]
3200
+ end
3201
+ push! (a25724, copy (X))
3202
+ end
3203
+ @test a25724 == [[0 ], [0 ], [0 ]]
3204
+
3188
3205
# for loop iterator expression should be evaluated in outer scope
3189
3206
let
3190
3207
for i in (local a = 1 : 2 )
You can’t perform that action at this time.
0 commit comments