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)
3048
3048
(kill))
3049
3049
(cdr e)))
3050
3050
(else
3051
- (mark-used e)
3051
+ (if (eq? (car e) '= )
3052
+ (visit (caddr e))
3053
+ (mark-used e))
3052
3054
(if (and (or (eq? (car e) '= )
3053
3055
(and (eq? (car e) 'method ) (length> e 2 )))
3054
3056
(has? unused (cadr e)))
Original file line number Diff line number Diff line change @@ -1832,6 +1832,15 @@ function g15276()
1832
1832
end
1833
1833
@test g15276 () isa Vector{Int}
1834
1834
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
+
1835
1844
# issue #27316 - inference shouldn't hang on these
1836
1845
f27316 (:: Vector ) = nothing
1837
1846
f27316 (:: Any ) = f27316 (Any[][1 ]), f27316 (Any[][1 ])
You can’t perform that action at this time.
0 commit comments