Sorry, I didn’t test fully. It appears is the difference between dims=3 and dims=Val(3) if you are just looking to get rid of the red…
function test_func()
array1 = rand(Float64,10,10)
array2 = rand(Float64,10,10)
out = cat(array1,array2,dims=Val(1))
return out
end
@code_warntype test_func()