File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
name = " DocStringExtensions"
2
2
uuid = " ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
3
- version = " 0.8.3 "
3
+ version = " 0.8.4 "
4
4
5
5
[deps ]
6
6
LibGit2 = " 76f85450-5226-5b5a-8eaa-529ad045b433"
Original file line number Diff line number Diff line change 505
505
506
506
function print_abstract_type (buf, object)
507
507
print (buf, " abstract type " , object. name. name)
508
+ print_params (buf, object)
508
509
print_supertype (buf, object)
509
510
println (buf)
510
511
end
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ struct K
44
44
K (; a = 1 ) = new ()
45
45
end
46
46
47
-
48
- abstract type AbstractType <: Integer end
47
+ abstract type AbstractType1 <: Integer end
48
+ abstract type AbstractType2{S, T <: Integer } <: Integer end
49
49
50
50
struct CustomType{S, T <: Integer } <: Integer
51
51
end
Original file line number Diff line number Diff line change @@ -377,13 +377,22 @@ end
377
377
378
378
@testset " type definitions" begin
379
379
doc. data = Dict (
380
- :binding => Docs. Binding (M, :AbstractType ),
380
+ :binding => Docs. Binding (M, :AbstractType1 ),
381
381
:typesig => Union{},
382
382
:module => M,
383
383
)
384
384
DSE. format (TYPEDEF, buf, doc)
385
385
str = String (take! (buf))
386
- @test str == " \n ```julia\n abstract type AbstractType <: Integer\n ```\n\n "
386
+ @test str == " \n ```julia\n abstract type AbstractType1 <: Integer\n ```\n\n "
387
+
388
+ doc. data = Dict (
389
+ :binding => Docs. Binding (M, :AbstractType2 ),
390
+ :typesig => Union{},
391
+ :module => M,
392
+ )
393
+ DSE. format (TYPEDEF, buf, doc)
394
+ str = String (take! (buf))
395
+ @test str == " \n ```julia\n abstract type AbstractType2{S, T<:Integer} <: Integer\n ```\n\n "
387
396
388
397
doc. data = Dict (
389
398
:binding => Docs. Binding (M, :CustomType ),
You can’t perform that action at this time.
0 commit comments