See:

https://github.com/JuliaLang/julia/issues/14853
https://github.com/JuliaLang/julia/issues/16440


On Sunday, June 19, 2016 at 5:59:29 PM UTC+2, David Cardozo wrote:
>
> Hi, small question, while I was doing some Linear Algebra I found the 
> following (strange?) behavior. Consider:
>
> A = Array(Int64,17)
> A[9:16]=[2,4,5,7,1,2,3,6]
> p=9
> L = Array(Number, 5)
> for i in 1:4
>      L[i]=A[p +i -1]
> end
>
> As that Julia complains and throws a MethodError: `typed_hcat` has no 
> method matching typed_hcat(::Array{Int64,1}, ::Int64, ::Int64)
>
> So I decided to investigate further and things like
>
> 3 + 1 -1
>
> Get parsed correctly, but the above isn't. Anyone could clarify the 
> problem, thanks.
>
>

Reply via email to