From 21be1168f9570a1fa915ccbc2903e0599cd625c8 Mon Sep 17 00:00:00 2001 From: MartinuzziFrancesco Date: Fri, 18 Sep 2026 22:10:48 +0200 Subject: [PATCH] fix: resolve RHNCell constructor method ambiguity Bool <: Integer let the outer constructor's depth::Integer overlap with the struct's default (layers::C, couple_carry::Bool) constructor. Narrowing to depth::Int removes the overlap. Co-Authored-By: Claude Sonnet 5 --- src/cells/rhn_cell.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cells/rhn_cell.jl b/src/cells/rhn_cell.jl index eefa04ea..1d4f2569 100644 --- a/src/cells/rhn_cell.jl +++ b/src/cells/rhn_cell.jl @@ -88,7 +88,7 @@ end @layer RHNCell -function RHNCell((input_size, hidden_size)::Pair{<:Int, <:Int}, depth::Integer=3; +function RHNCell((input_size, hidden_size)::Pair{<:Int, <:Int}, depth::Int=3; couple_carry::Bool=true, #sec 5, setup cell_kwargs...) depth > 0 || throw(ArgumentError("depth must be a positive integer; got $depth"))