diff --git a/test/broadcast.jl b/test/broadcast.jl index a8de5518f3724..df3330c2e7f35 100644 --- a/test/broadcast.jl +++ b/test/broadcast.jl @@ -684,6 +684,15 @@ let n = 1 @test ceil.(Int, 1 ./ (1,)) == (1,) end +# Issue #29266 +@testset "deprecated scalar-fill .=" begin + a = fill(1, 10) + @test_throws ArgumentError a[1:5] = 0 + + x = randn(10) + @test_throws ArgumentError x[x .> 0.0] = 0.0 +end + # lots of splatting! let x = [[1, 4], [2, 5], [3, 6]]