Skip to content

Commit 685ff44

Browse files
committed
adding newlines in Base.convert prevents error "undefined "
1 parent e3c05e4 commit 685ff44

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/.ModuleElts.jl.swp

32 KB
Binary file not shown.

src/ModuleElts.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,10 @@ function Base.convert(::Type{$M{K,V}},a::$M{K1,V1}) where {K,K1,V,V1}
395395
end
396396
else
397397
if iszero(a) zero($M{K,V})
398-
elseif V==V1 $M(convert(K,k)=>v for (k,v) in a.d;check=false)
399-
else $M(convert(K,k)=>convert(V,v) for (k,v) in a.d;check=false)
398+
elseif V==V1
399+
$M(convert(K,k)=>v for (k,v) in a.d;check=false)
400+
else
401+
$M(convert(K,k)=>convert(V,v) for (k,v) in a.d;check=false)
400402
end
401403
end
402404
end

0 commit comments

Comments
 (0)