Skip to content

Commit

Permalink
Fix method ambiguity warning
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed May 8, 2015
1 parent 89f3a12 commit 6f663ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ end
@deprecate inf{T<:FloatingPoint}(::Type{T}) convert(T,Inf)
@deprecate nan{T<:FloatingPoint}(::Type{T}) convert(T,NaN)

finalizer(::Union(Function,Ptr), ::Union(Function,Ptr)) = error("finalizer(f1::Union(Function,Ptr), f2::Union(Function,Ptr)) is ambiguous due to deprecation")

function finalizer(o::Any, f::Union(Function,Ptr))
depwarn("finalizer(o::Any, f::Union(Function,Ptr)) is deprecated, " *
"use finalizer(f::Union(Function,Ptr), o::Any) instead", :finalizer)
Expand Down

0 comments on commit 6f663ee

Please sign in to comment.