File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -670,6 +670,7 @@ function template_key(doc::Docs.DocStr)
670
670
_key (:: Function , :: typeof (Union{}), binding) = ismacro (binding) ? :MACROS : :FUNCTIONS
671
671
_key (:: Function , sig, binding) = ismacro (binding) ? :MACROS : :METHODS
672
672
_key (:: DataType , :: typeof (Union{}), binding) = :TYPES
673
+ _key (:: UnionAll , :: typeof (Union{}), binding) = :TYPES
673
674
_key (:: DataType , sig, binding) = :METHODS
674
675
_key (other, sig, binding) = :DEFAULT
675
676
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ const K = 1
35
35
" mutable struct `T`"
36
36
mutable struct T end
37
37
38
+ " mutable struct `ISSUE_115{S}`"
39
+ mutable struct ISSUE_115{S} end
40
+
38
41
" `@kwdef` struct `S`"
39
42
Base. @kwdef struct S end
40
43
@@ -101,6 +104,9 @@ module OtherModule
101
104
" mutable struct `T`"
102
105
mutable struct T end
103
106
107
+ " mutable struct `ISSUE_115{S}`"
108
+ mutable struct ISSUE_115{S} end
109
+
104
110
" macro `@m`"
105
111
macro m (x) end
106
112
Original file line number Diff line number Diff line change 496
496
@test occursin (" (DEFAULT)" , fmt (:(TemplateTests. K)))
497
497
@test occursin (" (TYPES)" , fmt (:(TemplateTests. T)))
498
498
@test occursin (" (TYPES)" , fmt (:(TemplateTests. S)))
499
+ @test occursin (" (TYPES)" , fmt (:(TemplateTests. ISSUE_115)))
499
500
@test occursin (" (METHODS, MACROS)" , fmt (:(TemplateTests. f)))
500
501
@test occursin (" (METHODS, MACROS)" , fmt (:(TemplateTests. g)))
501
502
@test occursin (" (METHODS, MACROS)" , fmt (:(TemplateTests. h)))
508
509
@test occursin (" (MACROS)" , fmt (:(TemplateTests. InnerModule. @m )))
509
510
510
511
@test occursin (" (TYPES)" , fmt (:(TemplateTests. OtherModule. T)))
512
+ @test occursin (" (TYPES)" , fmt (:(TemplateTests. OtherModule. ISSUE_115)))
511
513
@test occursin (" (MACROS)" , fmt (:(TemplateTests. OtherModule. @m )))
512
514
@test fmt (:(TemplateTests. OtherModule. f)) == " method `f`\n "
513
515
end
You can’t perform that action at this time.
0 commit comments