Skip to content

Commit 5fcd6f7

Browse files
Use a concrete type rather than abstract (Julia 1.0 issue).
1 parent c738d5b commit 5fcd6f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/TestModule/M.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ h_3(x::A{T}) where {T} = x
1616
h_4(x, ::Int, z) = x
1717

1818
@generated g_1(x) = x
19-
@generated g_2(x::Integer) = x
19+
@generated g_2(x::String) = x
2020

2121
i_1(x; y = x) = x * y
2222
i_2(x::Int; y = x) = x * y

test/tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ end
209209

210210
doc.data = Dict(
211211
:binding => Docs.Binding(M, :g_2),
212-
:typesig => Tuple{Integer},
212+
:typesig => Tuple{String},
213213
:module => M,
214214
)
215215
DSE.format(TYPEDSIGNATURES, buf, doc)
216216
str = String(take!(buf))
217217
@test occursin("\n```julia\n", str)
218-
@test occursin("\ng_2(x::Integer)", str)
218+
@test occursin("\ng_2(x::String)", str)
219219
@test occursin("\n```\n", str)
220220

221221
doc.data = Dict(

0 commit comments

Comments
 (0)