From 39766be6bf968f9d21b7fe66fdadcabad72ce9ea Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Sat, 19 Feb 2022 20:03:52 +0100 Subject: [PATCH] fix syntax for `return_type`, fixes test on 1.8 --- src/mutable_list.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mutable_list.jl b/src/mutable_list.jl index 13b8827b7..27e8c2fa4 100644 --- a/src/mutable_list.jl +++ b/src/mutable_list.jl @@ -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}()