Skip to content

Commit 1fc0cfc

Browse files
leburgelclaude
andcommitted
Give TreeRows an inner constructor, so that Aqua finds no unbound type parameter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 26033ad commit 1fc0cfc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/fusiontrees/fusiontrees.jl‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ struct TreeRows{F, D}
287287
trees::Vector{F}
288288
index::Union{D, Nothing} # `nothing`: few trees, the rows are found by a linear search
289289
n::Int
290+
# no default outer constructor, of which `D` would be unbound if `index === nothing`
291+
TreeRows{F, D}(trees::Vector{F}, index, n::Int) where {F, D} = new{F, D}(trees, index, n)
290292
end
291293
function TreeRows(
292294
::Type{I}, uncoupled, isdual, n::Int, ::Val{canonical}, buffer = nothing

0 commit comments

Comments
 (0)