Skip to content

Commit

Permalink
fix syntax for return_type, fixes test on 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored and oxinabox committed May 6, 2022
1 parent 2a7e849 commit 39766be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mutable_list.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ end

function Base.map(f::Base.Callable, l::MutableLinkedList{T}) where T
if isempty(l) && f isa Function
S = Core.Compiler.return_type(f, (T,))
S = Core.Compiler.return_type(f, Tuple{T})
return MutableLinkedList{S}()
elseif isempty(l) && f isa Type
return MutableLinkedList{f}()
Expand Down

0 comments on commit 39766be

Please sign in to comment.