File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -3048,7 +3048,9 @@ f(x) = yt(x)
30483048 (kill))
30493049 (cdr e)))
30503050 (else
3051- (mark-used e)
3051+ (if (eq? (car e) '=)
3052+ (visit (caddr e))
3053+ (mark-used e))
30523054 (if (and (or (eq? (car e) '=)
30533055 (and (eq? (car e) 'method) (length> e 2)))
30543056 (has? unused (cadr e)))
Original file line number Diff line number Diff line change @@ -1832,6 +1832,15 @@ function g15276()
18321832end
18331833@test g15276 () isa Vector{Int}
18341834
1835+ function inbounds_30563 ()
1836+ local y
1837+ @inbounds for i in 1 : 10
1838+ y = (m-> 2 i)(0 )
1839+ end
1840+ return y
1841+ end
1842+ @test Base. return_types (inbounds_30563, ()) == Any[Int]
1843+
18351844# issue #27316 - inference shouldn't hang on these
18361845f27316 (:: Vector ) = nothing
18371846f27316 (:: Any ) = f27316 (Any[][1 ]), f27316 (Any[][1 ])
You can’t perform that action at this time.
0 commit comments