Simon, I defined a new push! methods.
However the error thrown is "MethodError: `push!` has no method..." 
followed by "you may have intended to import Base.push!"
So I misunderstood the error message.
After I changed the function name, the error is fixed. Thanks very much!

Btw, what is the right way to add new methods for `push!`? Is this 
discouraged?


On Thursday, October 8, 2015 at 12:56:30 PM UTC+2, Simon Danisch wrote:
>
> This should work and nowadays overwritting push! should throw an error, so 
> it's unlikely that you did this.
> What usually helps is to give a minimal reproducable example, e.g. via a 
> github gist.
>
> Best,
> Simon
>
> Am Donnerstag, 8. Oktober 2015 12:48:38 UTC+2 schrieb cheng wang:
>>
>> Hello everyone,
>>
>> I got this error by the compiler (Julia 0.4rc):
>> ERROR: LoadError: MethodError: `push!` has no method matching 
>> push!(::Array{Any,1}, 
>> ::Tuple{Array{ASCIIString,1},Array{ASCIIString,1},TestFilter})
>>
>> As far as I see, this pushing should be ok. Could someone help ?
>>
>> Best,
>> Cheng
>>
>

Reply via email to