-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviortypes and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch
Description
julia> typealias SelfDict{T} Dict{T,T}
Dict{T,T}
julia> isself(d::Dict) = false
# methods for generic function isself
isself(d::Dict{K,V}) at none:1
julia> isself(d::SelfDict) = true
# methods for generic function isself
isself(d::Dict{T,T}) at none:1
julia> isself([1=>2])
true
julia> isself([1=>"foo"])
trueMetadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviortypes and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch