Skip to content

Commit

Permalink
Fix method ambiguity in checkshape
Browse files Browse the repository at this point in the history
  • Loading branch information
kamesy committed Aug 26, 2022
1 parent 6fca4ce commit 49e803b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/utils/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,19 @@ end
##### Error checking
#####

checkshape(
::Type{Bool},
::Tuple{},
::Tuple{}
) = true

checkshape(
::Tuple{},
::Tuple{},
::NTuple{2, Union{Symbol, AbstractString}} = (:a, :b)
) = nothing


function checkshape(
::Type{Bool},
a::NTuple{Na, Integer},
Expand Down

0 comments on commit 49e803b

Please sign in to comment.