From 5fac4e816dd5ff848fad99f6f4b41c90a3f2cccd Mon Sep 17 00:00:00 2001 From: rafaqz Date: Thu, 21 Sep 2023 21:41:26 +0200 Subject: [PATCH 1/2] fix zip syntax --- src/zip.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zip.jl b/src/zip.jl index 734b2d4..b3eefb8 100644 --- a/src/zip.jl +++ b/src/zip.jl @@ -74,6 +74,6 @@ macro implement_zip(t) Base.zip(::$t, x, xs...) = $_zip_error() Base.zip(x, ::$t, xs...) = $_zip_error() - Base.zip($t, ::$t, xs...) = $_zip_error() + Base.zip(::$t, ::$t, xs...) = $_zip_error() end end From 935733f7d4576f854dbe7eefc052b56904fe17a5 Mon Sep 17 00:00:00 2001 From: rafaqz Date: Thu, 21 Sep 2023 21:48:13 +0200 Subject: [PATCH 2/2] test macro on Main._DiskArray --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 65b6d2b..2ae12ec 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -40,7 +40,7 @@ end _DiskArray(a; chunksize=size(a)) = _DiskArray(Ref(0), Ref(0), a, chunksize) # Apply the all in one macro rather than inheriting -DiskArrays.@implement_diskarray _DiskArray +DiskArrays.@implement_diskarray Main._DiskArray Base.size(a::_DiskArray) = size(a.parent) DiskArrays.haschunks(::_DiskArray) = DiskArrays.Chunked()