Skip to content

Commit

Permalink
fix ambiguities
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar committed Oct 15, 2024
1 parent 0e6ae93 commit 60714a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Agents.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ include("deprecations.jl")
# visualizations (singleton methods for package extension)
include("visualizations.jl")

include("ambiguities.jl")

include("precompile.jl")

# Update messages:
Expand Down
7 changes: 7 additions & 0 deletions src/ambiguities.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

# non-functional ambiguity fixes

add_agent!(::AbstractAgent, ::Union{Function, Type}, ::AgentBasedModel, ::Vararg{Any, N}; kwargs...) where N = error()
add_agent!(::AbstractAgent, ::AgentBasedModel, ::AgentBasedModel) = error()
add_agent!(::AgentBasedModel, ::Union{Function, Type}, ::AgentBasedModel, ::Vararg{Any, N}; kwargs...) where N = error()
add_agent!(::AgentBasedModel, ::AgentBasedModel, ::Vararg{Any, N}; kwargs...) where N = error()

0 comments on commit 60714a8

Please sign in to comment.