Why does julia not recognize the type of an array that is passed as a function argument, listing it as Any instead?
问题 I am defining a function in julia that accepts a vector (specifically Vector{Complex128} ). When I look at the output of @code_warntype I see that the variable type is listed as Any . This can potentially have speed implications, as I understand. Here is a simple version of the code, for example: function abc(h::Vector{Complex128}) a=1+2 end The output from @code_warntype is julia> @code_warntype abc(zeros(Complex128,2)) Variables: #self#::#abc h::Any a::Int64 Body: begin SSAValue(0) = (Base