From 60714a88df6db1f5332433a33d4c12089d1d7488 Mon Sep 17 00:00:00 2001 From: Tortar Date: Tue, 15 Oct 2024 14:41:46 +0200 Subject: [PATCH] fix ambiguities --- src/Agents.jl | 2 ++ src/ambiguities.jl | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 src/ambiguities.jl diff --git a/src/Agents.jl b/src/Agents.jl index 11df13f1b..2530bca78 100644 --- a/src/Agents.jl +++ b/src/Agents.jl @@ -66,6 +66,8 @@ include("deprecations.jl") # visualizations (singleton methods for package extension) include("visualizations.jl") +include("ambiguities.jl") + include("precompile.jl") # Update messages: diff --git a/src/ambiguities.jl b/src/ambiguities.jl new file mode 100644 index 000000000..d54c1a4af --- /dev/null +++ b/src/ambiguities.jl @@ -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()