From f11828075b2a8c46cb306d8c3deadaa0ed58a03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Thu, 13 Apr 2017 22:20:03 +0200 Subject: [PATCH] Fix #770 --- src/components.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components.jl b/src/components.jl index f660a149..551fbee8 100644 --- a/src/components.jl +++ b/src/components.jl @@ -521,7 +521,7 @@ Base.Array(surf::Surface) = surf.surf for f in (:length, :size) @eval Base.$f(surf::Surface, args...) = $f(surf.surf, args...) end -Base.copy(surf::Surface) = Surface{typeof(surf.surf)}(copy(surf.surf)) +Base.copy(surf::Surface) = Surface(copy(surf.surf)) Base.eltype{T}(surf::Surface{T}) = eltype(T) function expand_extrema!(a::Axis, surf::Surface)