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 11name = " DocStringExtensions"
22uuid = " ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
3- version = " 0.8.3 "
3+ version = " 0.8.4 "
44
55[deps ]
66LibGit2 = " 76f85450-5226-5b5a-8eaa-529ad045b433"
Original file line number Diff line number Diff line change 505505
506506function print_abstract_type (buf, object)
507507 print (buf, " abstract type " , object. name. name)
508+ print_params (buf, object)
508509 print_supertype (buf, object)
509510 println (buf)
510511end
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ struct K
4444 K (; a = 1 ) = new ()
4545end
4646
47-
48- abstract type AbstractType <: Integer end
47+ abstract type AbstractType1 <: Integer end
48+ abstract type AbstractType2{S, T <: Integer } <: Integer end
4949
5050struct CustomType{S, T <: Integer } <: Integer
5151end
Original file line number Diff line number Diff line change @@ -377,13 +377,22 @@ end
377377
378378 @testset " type definitions" begin
379379 doc. data = Dict (
380- :binding => Docs. Binding (M, :AbstractType ),
380+ :binding => Docs. Binding (M, :AbstractType1 ),
381381 :typesig => Union{},
382382 :module => M,
383383 )
384384 DSE. format (TYPEDEF, buf, doc)
385385 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 "
387396
388397 doc. data = Dict (
389398 :binding => Docs. Binding (M, :CustomType ),
You can’t perform that action at this time.
0 commit comments