Skip to content

Commit 39766be

Browse files
KristofferCoxinabox
authored andcommitted
fix syntax for return_type, fixes test on 1.8
1 parent 2a7e849 commit 39766be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mutable_list.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ end
6868

6969
function Base.map(f::Base.Callable, l::MutableLinkedList{T}) where T
7070
if isempty(l) && f isa Function
71-
S = Core.Compiler.return_type(f, (T,))
71+
S = Core.Compiler.return_type(f, Tuple{T})
7272
return MutableLinkedList{S}()
7373
elseif isempty(l) && f isa Type
7474
return MutableLinkedList{f}()

0 commit comments

Comments
 (0)