Could you be more specific about your confusion? Both those methods match `f()` so there's an ambiguity.
On Wed, Apr 20, 2016 at 10:30 AM, Robert Gates <[email protected]> wrote: > I was wondering how this can happen: > > julia> type T1; end > > > julia> type T2; end > > > julia> f(a::T1...) = () > > f (generic function with 1 method) > > > julia> f(a::T2...) = () > > WARNING: New definition > > f(Main.T2...) at none:1 > > is ambiguous with: > > f(Main.T1...) at none:1. > > To fix, define > > f() > > before the new definition. > > f (generic function with 2 methods) > > > This is a fresh julia 0.4.5 session. I actually encountered this when using > two packages and then built this MWE. >
