Skip to content

Commit

Permalink
Allow types with no fields
Browse files Browse the repository at this point in the history
e.g. `Base.Val` is such a type
  • Loading branch information
goretkin committed Jul 30, 2021
1 parent f83ffe5 commit e8f76ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/AutoHashEquals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ macro auto_hash_equals(typ)
# not a field
end
end
@assert length(names) > 0

quote
Base.@__doc__($(esc(typ)))
Expand Down

0 comments on commit e8f76ff

Please sign in to comment.