Skip to content

Commit

Permalink
Modules are not ancestors(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
spuun committed Oct 7, 2024
1 parent 35afef7 commit 1874b4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/crystal/tools/doc/type.cr
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class Crystal::Doc::Type

unless ast_node?
@type.ancestors.each do |ancestor|
next if ancestor.module?
next unless @generator.must_include? ancestor
doc_type = @generator.type(ancestor)
ancestors << doc_type
Expand Down

0 comments on commit 1874b4f

Please sign in to comment.